Sha256: c808590adb6e1bba91d1017cec8b9072dd4d376f86865d4e6463cd902014bd61
Contents?: true
Size: 919 Bytes
Versions: 2
Compression:
Stored size: 919 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "spec_helper") require 'fileutils' module Wally describe ListsFeatures do before do FileUtils.mkdir_p "application-features" end after do FileUtils.rm_rf "application-features" end it "returns a list of alphabeticaly ordered features" do File.open("application-features/1-sample.feature", "w") do |file| file.write "Feature: Zorro" end File.open("application-features/2-sample.feature", "w") do |file| file.write "Feature: Malgor" end File.open("application-features/3-sample.feature", "w") do |file| file.write "Feature: Adrian" end ListsFeatures.features.size.should == 3 ListsFeatures.features[0]["name"].should == "Adrian" ListsFeatures.features[1]["name"].should == "Malgor" ListsFeatures.features[2]["name"].should == "Zorro" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wally-0.0.2 | spec/wally/lists_features_spec.rb |
wally-0.0.1 | spec/wally/lists_features_spec.rb |