spec/handlers/c/struct_handler_spec.rb in yard-0.8.7.6 vs spec/handlers/c/struct_handler_spec.rb in yard-0.9.0

- old
+ new

@@ -1,15 +1,15 @@ require File.dirname(__FILE__) + '/spec_helper' describe YARD::Handlers::C::StructHandler do after { Registry.clear } - it "should handle Struct class definitions" do + it "handles Struct class definitions" do parse_init <<-eof rb_cRange = rb_struct_define_without_accessor( "Range", rb_cFoo, range_alloc, "begin", "end", "excl", NULL); eof - Registry.at('Range').type.should == :class - Registry.at('Range').superclass.should == P(:Foo) + expect(Registry.at('Range').type).to eq :class + expect(Registry.at('Range').superclass).to eq P(:Foo) end end \ No newline at end of file