In spec_helper.rb or rails_helper.rb:
RSpec.configure do |config|
config.before(:suite) do
Rails.application.load_seed # loading seeds
end
end
Related Contents:
- How to run a single RSpec test?
- How to get current path with query string using Capybara
- How do I prepare test database(s) for Rails rspec tests without running rake spec?
- Factory-girl create that bypasses my model validation
- Rails 3.1, RSpec: testing model validations
- How to test rendering a partial with RSpec
- How to include Rails Helpers on RSpec
- How to set up MiniTest?
- How to test ElasticSearch in a Rails application (Rspec)
- Rails DB Migration – How To Drop a Table?
- Repairing Postgresql after upgrading to OSX 10.7 Lion
- Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
- How to check a checkbox in capybara?
- How to delete migration files in Rails 3
- rspec 3 – stub a class method
- How to test exception raising in Rails/RSpec?
- Rspec doesn’t see my model Class. uninitialized constant error
- Check if record exists from controller in Rails
- Rails auto-assigning id that already exists
- undefined method `visit’ when using RSpec and Capybara in rails
- How to check if a number is included in a range (in one statement)?
- Should I specify exact versions in my Gemfile?
- Generate a controller with all the RESTful functions
- Rails migration: how to retrieve current migration version?
- Rspec 3 how to test flash messages
- before_filter with parameters
- How to get a single column’s values into an array
- “Order by” result of “group by” count?
- When to use self in Model?
- Where to put Ruby helper methods for Rails controllers?
- Alias for column names in Rails
- Why is my custom rake task in lib/tasks not discovered in Rails 3?
- incompatible character encodings: ASCII-8BIT and UTF-8
- How to display a Rails flash notice upon redirect?
- Rails 3 / Form without Model: How do I create a form that is not tied to a model?
- Find the newest record in Rails 3
- Rails order by results count of has_many association
- Role does not exist and unable to create database when using PostgreSQL
- Reserved names with ActiveRecord models
- Rails naming convention for join table
- rails, simple_form, how to set selected index of a collection when page loaded?
- How to remove a column from my Rails model?
- Rails: How to get all parameters from url?
- Possible to alias a belongs_to association in Rails?
- View helper link_to in Model class
- Passing variables inside rails internationalization yml file
- expected true to respond to true?
- Rails 3 default datetime format without UTC
- Rails 3: Passenger can’t find git gems installed by bundler
- Listing the names of associated models