[rspec-users] Fixtures are not loaded while running controller spec
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
> (that's an odd spec but let's try to get your fixtures loading first :)
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