-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename #gather_features and #write_feature_file to #gather and #write…
…_file
- Loading branch information
Andrew Stewart
committed
Dec 4, 2012
1 parent
2c6efcb
commit 4b894cd
Showing
4 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
test/lib/gitnesse/gather_features_test.rb → test/lib/gitnesse/gather_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
require_relative '../../test_helper' | ||
|
||
describe Gitnesse::Features do | ||
describe ".gather_features" do | ||
describe ".gather" do | ||
|
||
describe "when several features" do | ||
let(:page_features) { {"test-feature" => "feature content", "another-test-feature" => "another feature content"} } | ||
|
||
it { Gitnesse::Features.gather_features(page_features).must_equal "feature content" } | ||
it { Gitnesse::Features.gather(page_features).must_equal "feature content" } | ||
end | ||
|
||
describe "when one single feature" do | ||
let(:page_features) { {"test-feature" => "feature content"} } | ||
|
||
it { Gitnesse::Features.gather_features(page_features).must_equal "feature content" } | ||
it { Gitnesse::Features.gather(page_features).must_equal "feature content" } | ||
end | ||
|
||
describe "when no features" do | ||
let(:page_features) { Hash.new } | ||
|
||
it { Gitnesse::Features.gather_features(page_features).must_equal "" } | ||
it { Gitnesse::Features.gather(page_features).must_equal "" } | ||
end | ||
|
||
describe "when nil" do | ||
let(:page_features) { nil } | ||
|
||
it { Gitnesse::Features.gather_features(page_features).must_equal "" } | ||
it { Gitnesse::Features.gather(page_features).must_equal "" } | ||
end | ||
end | ||
end |
6 changes: 3 additions & 3 deletions
6
test/lib/gitnesse/write_feature_file_test.rb → test/lib/gitnesse/write_file_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters