Sha256: 2942a7be2a7735db2c00a25b92a7ccf988aa1514c58b36f90b412cf255f97d6b

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 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) do
    @request.host = 'localhost:3000'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
myrails-1.0.0 lib/myrails/templates/rspec/router.rb