spec/usaidwat/service_spec.rb in usaidwat-1.4.5 vs spec/usaidwat/service_spec.rb in usaidwat-1.5.0
- old
+ new
@@ -10,12 +10,12 @@
expect(service.user("mipadi")).to respond_to(:comments)
end
end
end
- describe MockUser do
- let (:user) { MockUser.new("mipadi") }
+ describe USaidWat::Thing::User do
+ let (:user) { MockService.new.user("mipadi") }
describe "#comments" do
it "should return an array of comments" do
expect(user.comments(100)).to respond_to(:count)
expect(user.comments(100)).to respond_to(:reject)
@@ -24,11 +24,11 @@
expect(user.comments(100).count).to eq(100)
end
end
end
- describe MockComment do
- let (:comment) { MockUser.new("mipadi").comments(100).first }
+ describe USaidWat::Thing::Comment do
+ let (:comment) { MockService.new.user("mipadi").comments(100).first }
describe "#subreddit" do
it "should return a string denoting what subreddit it belongs to" do
expect(comment.subreddit).to eq("wikipedia")
end