spec/spec_helper.rb in shoulda-kept-assign-to-1.0.1 vs spec/spec_helper.rb in shoulda-kept-assign-to-1.1.0
- old
+ new
@@ -19,8 +19,10 @@
# Run the migrations
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.migrate(Rails.root.join('db/migrate'))
RSpec.configure do |config|
- config.include Shoulda::Matchers::ActionController,
- :example_group => { :file_path => /action_controller/ }
-end
\ No newline at end of file
+ config.include ActionController::TemplateAssertions
+ config.include Shoulda::Matchers::ActionController
+
+ config.expect_with(:rspec) { |c| c.syntax = :should }
+end