Sha256: d366fcee7a8f22f9dcb57940127b532b8e20201f1efdfe578e804ed8093d09e1
Contents?: true
Size: 921 Bytes
Versions: 6
Compression:
Stored size: 921 Bytes
Contents
Given /^I setup the example (\w+) app for testing$/ do |app| @app = app system "cp -r examples/#{app}_app tmp/aruba/#{app}_app" And "I cd to \"#{app}_app\"" end Given /^I clean the generated assets$/ do FileUtils.rm_rf "tmp/aruba/#{@app}_app/public/assets" end When /^I wait (\d+) seconds$/ do |seconds| sleep(seconds.to_i) end When /^I stop the process$/ do process = processes.first pid = process[1].instance_variable_get("@process").pid Process.kill("INT", pid) end Then /^the hello asset should be compiled$/ do files = Dir["tmp/aruba/#{@app}_app/public/assets/*.js"] files.count.should eq 1 file = files.first File.read(file).should include("console.log('Hello')") end Then /^the goodbye asset should be compiled$/ do files = Dir["tmp/aruba/#{@app}_app/public/assets/*.js"] files.count.should eq 1 file = files.first File.read(file).should include("console.log('Goodbye')") end
Version data entries
6 entries across 6 versions & 1 rubygems