[rspec-users] Fixtures are not loaded while running controller spec
Amit Kulkarni
lists at ruby-forum.com
Fri Jun 12 02:33:58 EDT 2009
> describe BbPostsController do
> context "test" do
> fixtures :bb_posts, :users
> it "should create post" do
> User.find_by_login("amit").should_not be_nil
> post = create_post
> post.should be_valid
> end
> end
> end
>
> (that's an odd spec but let's try to get your fixtures loading first :)
>
> Pat
Thanks a lot Pat.It worked.
And fixtures were also loaded successfully.
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list