Sha256: b06d646ef91e6fa4633a274577fe1a914b324cf3268a4ce673a4697a2cc280c2
Contents?: true
Size: 456 Bytes
Versions: 14
Compression:
Stored size: 456 Bytes
Contents
# Controller test doesn't seem to use default url option when redirecting to an associated record. Uses http://test.com. This is an attmept to unify this and capybara which uses http://www.example.com. # Add this method to the before action of any controller specs that needed it. Found it useful to use this when using shared examples. RSpec.configure do |config| config.before :each, type: :controller do @request.host = 'localhost:3000' end end
Version data entries
14 entries across 14 versions & 1 rubygems