usmu 0.1.0-java → 0.2.0-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +0,0 @@
1
- require 'usmu/ui/console'
2
- require 'open3'
3
-
4
- Given(/^I have a site at "([^"]*)"$/) do |location|
5
- @site = Usmu::Ui::Console.new([location])
6
- end
7
-
8
- When(/^I generate the site$/) do
9
- @site.execute
10
- end
11
-
12
- Then(/^the destination directory should match "([^"]*)"$/) do |test_folder|
13
- run = %W{diff -qr #{@site.configuration.destination_path} #{test_folder}}
14
- Open3.popen2e(*run) do |i, o, t|
15
- output = run.join(' ') + "\n" + o.read
16
- fail output if t.value != 0
17
- end
18
- end