spec/lib/writefully/postable_spec.rb in writefully-0.7.1 vs spec/lib/writefully/postable_spec.rb in writefully-0.8.0

- old
+ new

@@ -4,24 +4,24 @@ describe Postable do subject { ::Post.new } describe "#klass_from" do it "should return Writefully::Tag" do - subject.klass_from("tag").should eq "Writefully::Tag" + expect(subject.klass_from("tag")).to eq "Writefully::Tag" end it "should turn Playlist" do - subject.klass_from("playlist").should eq "Playlist" + expect(subject.klass_from("playlist")).to eq "Playlist" end end it "should set published_at" do subject.publish = true subject.publish_resource - subject.published_at.should_not be_nil + expect(subject.published_at).to_not be_nil end it "should taxonomize correctly" do - subject.respond_to?(:playlists).should be_true + expect(subject.respond_to?(:playlists)).to be true end end end \ No newline at end of file