Permalink
Browse files

Add Set context

  • Loading branch information...
1 parent d307c7d commit e919a0df79f61defddc7898f0475aaaee0a67335 @noprompt noprompt committed Dec 13, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 spec/seq_spec.rb
View
@@ -13,7 +13,7 @@ def to_a; [:q]; end
describe "#seq" do
it "should return the original object" do
seq.seq.should be seq
- end
+ end
end
describe "the unimplemented methods" do
@@ -196,6 +196,12 @@ def to_a; [:q]; end
let(:arrayseq) { Rouge::Seq::Array.new([:a], 0) }
it { Rouge::Seq.seq(arrayseq).should be arrayseq }
end
+
+ context Set do
+ subject { Rouge::Seq.seq(Set.new([1, 2, 3])) }
+ it { should be_an_instance_of Rouge::Seq::Array }
+ it { should eq Rouge::Seq::Array.new([1, 2, 3], 0) }
+ end
end
end

0 comments on commit e919a0d

Please sign in to comment.