spec/spec_helper.rb in storytime-2.0.0 vs spec/spec_helper.rb in storytime-2.1.0
- old
+ new
@@ -42,19 +42,19 @@
Storytime::Role.seed
Storytime::Action.seed
Storytime::Permission.seed
end
- # config.after(type: :feature) do
- # page.driver.reset!
+ # config.after(type: :feature) do
+ # page.driver.reset!
# Capybara.reset_sessions!
# end
# config.after(:suite) do
# Capybara.reset_sessions!
# end
-
+
# ## Mock Framework
#
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
#
# config.mock_with :mocha
@@ -67,11 +67,11 @@
config.use_transactional_fixtures = false
# If true, the base class of anonymous controllers will be inferred
# automatically. This will be the default behavior in future versions of
# rspec-rails.
- config.infer_base_class_for_anonymous_controllers = false
+ config.infer_base_class_for_anonymous_controllers = true
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
@@ -85,6 +85,6 @@
config.run_all_when_everything_filtered = true
end
def have_image(url)
have_xpath("//img[@src='#{url}']")
-end
\ No newline at end of file
+end