Permalink
Browse files

Loading fixtures explicitly to fix the build

  • Loading branch information...
dtsato committed Jun 13, 2012
1 parent 9f75de8 commit 87718ca614f3a50751aa6d4cf543ec03d9efffb2
Showing with 8 additions and 5 deletions.
  1. +8 −5 spec/controllers/users_controller_spec.rb
@@ -2,28 +2,31 @@
require 'spec_helper'
describe UsersController, :render_views => true do
+ fixtures :users
render_views
-
+
it "show should work" do
get :show, :id => User.first
end
end
describe UsersController do
+ fixtures :users
+
describe "#index" do
describe "with javascript format" do
before do
get :index, :format => :js, :term => 'dt'
end
-
+
it { should respond_with_content_type(:js) }
end
-
+
describe "with html format" do
before do
get :index
end
-
+
it { should redirect_to(new_user_registration_path) }
end
end
@@ -32,7 +35,7 @@
before do
get :show, :id => User.first
end
-
+
it { should respond_with(:success) }
it { should render_template(:show) }
end

0 comments on commit 87718ca

Please sign in to comment.