usmu 0.1.0-java → 0.2.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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