spec/gram/blog/parser_spec.rb in gram-0.0.1 vs spec/gram/blog/parser_spec.rb in gram-0.1.0

- old
+ new

@@ -9,20 +9,22 @@ file = double :file raw = """ --- title: My title tagline: My tagline +published: false --- #My post # Blah """ File.stub(:read).with(file).and_return raw - subject.parse(file).should == { title: 'My title', - tagline: 'My tagline', - body: "#My post\n#\nBlah"} + subject.parse(file).should == { 'title' => 'My title', + 'tagline' => 'My tagline', + 'published' => false, + 'body' => "#My post\n#\nBlah"} end end end end