spec/spec_helper.rb in locomotivecms-search-0.1.0 vs spec/spec_helper.rb in locomotivecms-search-0.2.0
- old
+ new
@@ -4,10 +4,12 @@
require 'rspec/rails'
require 'rspec/autorun'
require 'factory_girl'
require 'database_cleaner'
require 'activesearch'
+require 'capybara-webkit'
+require 'capybara-screenshot'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
require Locomotive::Engine.root.join('spec', 'support', 'factories')
Dir[Locomotive::Search::Engine.root.join("spec/support/**/*.rb")].each {|f| require f}
@@ -40,9 +42,13 @@
config.after(:each) do
Mongoid.purge!
end
end
+
+Capybara.javascript_driver = :webkit
+Capybara.server_port = 7171
+Capybara.app_host = "http://test.example.com:7171"
shared_examples "a search backend" do
it "that works" do
visit 'http://test.example.com'
fill_in "Search", with: "findable"
\ No newline at end of file