spec/murdoc/annotator_spec.rb in murdoc-0.1.0 vs spec/murdoc/annotator_spec.rb in murdoc-0.1.1
- old
+ new
@@ -9,9 +9,13 @@
it "should set source type from second argument" do
Murdoc::Annotator.new("# Hello", "ruby").source_type.should == "ruby"
Murdoc::Annotator.new("# Hello", :ruby).source_type.should == "ruby"
end
+
+ it "should set options from hash" do
+ Murdoc::Annotator.new("", "", :foo => :bar).options[:foo].should == :bar
+ end
end
describe ".from_file" do
after(:each) { FileUtils.rm "annotator_test.rb", :force => true }
it "should set #source from file contents" do
\ No newline at end of file