Sha256: fdffd10e556c08e4127e4b35bf0dc1c7b3a11c2ea511b1e6fa23b10cb87c600d
Contents?: true
Size: 712 Bytes
Versions: 3
Compression:
Stored size: 712 Bytes
Contents
Given /^the "([^"]*)" gem is installed$/ do |name| `gem list #{name} |grep #{name}`.size.should > 0 end When /^I start the visage server helper with "([^"]*)"$/ do |cmd| @root = Pathname.new(File.dirname(__FILE__)).parent.parent.expand_path command = "#{@root.join('bin')}/#{cmd}" @pipe = IO.popen(command, "r") sleep 2 # so the visage server has a chance to boot # clean up the visage server when the tests finish at_exit do Process.kill("KILL", @pipe.pid) end end Then /^a visage web server should be running$/ do `ps -eo cmd |grep ^visage`.size.should > 0 end Then /^I should see "([^"]*)" on the terminal$/ do |string| output = @pipe.read(250) output.should =~ /#{string}/ end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
visage-app-0.2.7 | features/step_definitions/visage_steps.rb |
visage-app-0.2.6 | features/step_definitions/visage_steps.rb |
visage-app-0.2.5 | features/step_definitions/visage_steps.rb |