spec/endpoints/post_spec.rb in wp-api-0.0.2 vs spec/endpoints/post_spec.rb in wp-api-0.0.3

- old
+ new

@@ -15,9 +15,17 @@ it "should be a post" do expect(subject).to be_a WP::API::Post end + it "should have an attributes hash" do + expect(subject.attributes).to be_a Hash + end + + it "should have a headers hash" do + expect(subject.headers).to be_a Hash + end + it "should have correct IDs" do expect(subject.id).to eq 1 end it "should have correct author" do