spec/github/orgs/members/conceal_spec.rb in github_api-0.9.0 vs spec/github/orgs/members/conceal_spec.rb in github_api-0.9.1

- old
+ new

@@ -2,12 +2,12 @@ require 'spec_helper' describe Github::Orgs::Members, '#conceal' do let(:org) { 'github' } - let(:member) { 'peter-murach' } - let(:request_path) { "/orgs/#{org}/public_members/#{member}" } + let(:user) { 'peter-murach' } + let(:request_path) { "/orgs/#{org}/public_members/#{user}" } before { stub_delete(request_path).to_return(:body => body, :status => status, :headers => {:content_type => "application/json; charset=utf-8"}) } @@ -20,16 +20,18 @@ it "should fail to get resource without org name" do expect { subject.conceal }.to raise_error(ArgumentError) end + it { expect { subject.conceal org }.to raise_error(ArgumentError) } + it "should get the resources" do - subject.conceal org, member + subject.conceal org, user a_delete(request_path).should have_been_made end end it_should_behave_like 'request failure' do - let(:requestable) { subject.conceal org, member } + let(:requestable) { subject.conceal org, user } end end # conceal