Skip to content

Commit

Permalink
Improved specs
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseykulikov committed Jan 19, 2013
1 parent 4b8edfa commit 1f3ac45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/api/dreams_controller_spec.rb
Expand Up @@ -17,8 +17,8 @@
}.to change(Dream, :count).by(1)
end

it 'response created' do
post :create, format: :json, dream: dream.attributes
it 'responses created' do
post :create, format: :json, dream: {name: 'New dream'}
response.status.should == 201
end
end
Expand Down
20 changes: 0 additions & 20 deletions spec/spec_helper.rb
Expand Up @@ -9,24 +9,4 @@
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}

RSpec.configure do |config|
# ## Mock Framework
#
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
#
# config.mock_with :mocha
# config.mock_with :flexmock
# config.mock_with :rr

# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"

# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
# instead of true.
config.use_transactional_fixtures = true

# If true, the base class of anonymous controllers will be inferred
# automatically. This will be the default behavior in future versions of
# rspec-rails.
config.infer_base_class_for_anonymous_controllers = false
end

0 comments on commit 1f3ac45

Please sign in to comment.