Sha256: 59bee1e4423888c84ba42aa44fcfb0f3a4da1740ba7a01ea7f43de0670002730
Contents?: true
Size: 932 Bytes
Versions: 3
Compression:
Stored size: 932 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', 'lib/rwiki') require 'rspec' require 'cucumber/web/tableish' require 'capybara' require 'capybara/cucumber' require File.expand_path(File.join(File.dirname(__FILE__), '../../test/tmpdir_helper')) Rwiki::App.set(:environment, :test) Capybara.default_selector = :css Capybara.register_driver :selenium do |app| Capybara::Driver::Selenium profile = Selenium::WebDriver::Firefox::Profile.new # profile.add_extension(File.expand_path("features/support/firebug-1.6.1-fx.xpi")) Capybara::Driver::Selenium.new(app, { :browser => :firefox, :profile => profile }) end World do Capybara.app = Rwiki::App include RSpec::Expectations include RSpec::Matchers include TmpdirHelper AfterStep do Given %Q{I wait for load the tree} And %Q{I wait for load an ajax call complete} end Before do create_tmpdir! end After do remove_tmpdir! end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rwiki-0.2.3 | features/support/env.rb |
rwiki-0.2.2 | features/support/env.rb |
rwiki-0.2.1 | features/support/env.rb |