gitnesse 0.1.3 → 0.12.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +0,0 @@
1
- require_relative '../../test_helper'
2
-
3
- describe Gitnesse do
4
- describe "#write_feature_file" do
5
- let(:method) { lambda { Gitnesse.write_feature_file } }
6
- let(:file) { StringIO.new }
7
-
8
- before do
9
- File.expects(:open).with("#{Gitnesse.target_directory}/test.feature", "w").yields(file)
10
- Gitnesse.expects(:gather_features).with({ "test-feature" => "feature content" }).returns("feature content")
11
- end
12
-
13
- it "writes to the file" do
14
- Gitnesse.write_feature_file("test", { "test-feature" => "feature content" })
15
- file.string.must_equal "feature content"
16
- end
17
- end
18
- end