Sha256: a4716ae3ac8c316167bcb45ea2c8e1c2bd7afc753131fe72161e08d55c0e8d30
Contents?: true
Size: 598 Bytes
Versions: 5
Compression:
Stored size: 598 Bytes
Contents
Given /^I am using (ActiveRecord|DataMapper|MongoMapper)$/ do |orm| @orm = orm end Given /^the (.+) cleaning strategy$/ do |strategy| @strategy = strategy end When "I run my scenarios that rely on a clean database" do full_dir ||= File.expand_path(File.dirname(__FILE__) + "/../../examples/") Dir.chdir(full_dir) do ENV['ORM'] = @orm.downcase ENV['STRATEGY'] = @strategy @out = `cucumber features` @status = $?.exitstatus end end Then "I should see all green" do unless @status == 0 raise "Expected to see all green but we saw FAIL! Output:\n#{@out}" end end
Version data entries
5 entries across 5 versions & 2 rubygems