diff options
Diffstat (limited to 'spec/ruby/library/set/sortedset/sortedset_spec.rb')
-rw-r--r-- | spec/ruby/library/set/sortedset/sortedset_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/ruby/library/set/sortedset/sortedset_spec.rb b/spec/ruby/library/set/sortedset/sortedset_spec.rb new file mode 100644 index 0000000000..67993dee29 --- /dev/null +++ b/spec/ruby/library/set/sortedset/sortedset_spec.rb @@ -0,0 +1,12 @@ +require_relative '../../../spec_helper' +require 'set' + +describe "SortedSet" do + it "raises error including message that it has been extracted from the set stdlib" do + -> { + SortedSet + }.should raise_error(RuntimeError) { |e| + e.message.should.include?("The `SortedSet` class has been extracted from the `set` library") + } + end +end |