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

Version Path
myrails-4.0.0 lib/myrails/templates/rspec/router.rb
myrails-3.2.1 lib/myrails/templates/rspec/router.rb
myrails-3.2.0 lib/myrails/templates/rspec/router.rb
myrails-3.1.0 lib/myrails/templates/rspec/router.rb
myrails-3.0.0 lib/myrails/templates/rspec/router.rb
myrails-2.2.2 lib/myrails/templates/rspec/router.rb
myrails-2.2.1 lib/myrails/templates/rspec/router.rb
myrails-2.2.0 lib/myrails/templates/rspec/router.rb
myrails-2.1.0 lib/myrails/templates/rspec/router.rb
myrails-2.0.0 lib/myrails/templates/rspec/router.rb
myrails-1.1.1 lib/myrails/templates/rspec/router.rb
myrails-1.1.0 lib/myrails/templates/rspec/router.rb
myrails-1.0.2 lib/myrails/templates/rspec/router.rb
myrails-1.0.1 lib/myrails/templates/rspec/router.rb