Sha256: fce99c92338112aac9f5cede72a9861fada3dc12e79c92aac9e63fba5fd344d8

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

require 'spec_helper'

describe 'Comments', :vcr do
  before do
    DesignerNews.reset!
    @client = DesignerNews::Client.new
  end

  context '.motd' do
    it "fetches the motd" do
      @client.motd
      assert_requested :get, designer_news_url("motd")
    end
  end

  context '.upvote_motd' do
    it "fetches the motd" do
      @client.upvote_motd
      assert_requested :post, designer_news_url("motd/upvote")
    end
  end

  context '.downvote_motd' do
    it "fetches the motd" do
      @client.downvote_motd
      assert_requested :post, designer_news_url("motd/downvote")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dn-0.1.0 spec/designer_news/client/motds_spec.rb