diff options
Diffstat (limited to 'spec/lib/bitbucket')
-rw-r--r-- | spec/lib/bitbucket/collection_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket/connection_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket/page_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket/paginator_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket/representation/comment_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket/representation/issue_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket/representation/pull_request_comment_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket/representation/pull_request_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket/representation/repo_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket/representation/user_spec.rb | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/spec/lib/bitbucket/collection_spec.rb b/spec/lib/bitbucket/collection_spec.rb index 5946be71565..349274585c4 100644 --- a/spec/lib/bitbucket/collection_spec.rb +++ b/spec/lib/bitbucket/collection_spec.rb @@ -17,7 +17,7 @@ class TestPaginator end end -describe Bitbucket::Collection do +RSpec.describe Bitbucket::Collection do it "iterates paginator" do collection = described_class.new(TestPaginator.new) diff --git a/spec/lib/bitbucket/connection_spec.rb b/spec/lib/bitbucket/connection_spec.rb index 5aca93767dc..bed44b94f44 100644 --- a/spec/lib/bitbucket/connection_spec.rb +++ b/spec/lib/bitbucket/connection_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Bitbucket::Connection do +RSpec.describe Bitbucket::Connection do before do allow_next_instance_of(described_class) do |instance| allow(instance).to receive(:provider).and_return(double(app_id: '', app_secret: '')) diff --git a/spec/lib/bitbucket/page_spec.rb b/spec/lib/bitbucket/page_spec.rb index 6301dd56faf..1d599007d9e 100644 --- a/spec/lib/bitbucket/page_spec.rb +++ b/spec/lib/bitbucket/page_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Bitbucket::Page do +RSpec.describe Bitbucket::Page do let(:response) { { 'values' => [{ 'username' => 'Ben' }], 'pagelen' => 2, 'next' => '' } } before do diff --git a/spec/lib/bitbucket/paginator_spec.rb b/spec/lib/bitbucket/paginator_spec.rb index a1effa14000..e74af8a264b 100644 --- a/spec/lib/bitbucket/paginator_spec.rb +++ b/spec/lib/bitbucket/paginator_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Bitbucket::Paginator do +RSpec.describe Bitbucket::Paginator do let(:last_page) { double(:page, next?: false, items: ['item_2']) } let(:first_page) { double(:page, next?: true, next: last_page, items: ['item_1']) } diff --git a/spec/lib/bitbucket/representation/comment_spec.rb b/spec/lib/bitbucket/representation/comment_spec.rb index 1874296df8c..f6766ab685b 100644 --- a/spec/lib/bitbucket/representation/comment_spec.rb +++ b/spec/lib/bitbucket/representation/comment_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Bitbucket::Representation::Comment do +RSpec.describe Bitbucket::Representation::Comment do describe '#author' do it { expect(described_class.new('user' => { 'nickname' => 'Ben' }).author).to eq('Ben') } it { expect(described_class.new({}).author).to be_nil } diff --git a/spec/lib/bitbucket/representation/issue_spec.rb b/spec/lib/bitbucket/representation/issue_spec.rb index 655b9b78b47..8c27086546f 100644 --- a/spec/lib/bitbucket/representation/issue_spec.rb +++ b/spec/lib/bitbucket/representation/issue_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Bitbucket::Representation::Issue do +RSpec.describe Bitbucket::Representation::Issue do describe '#iid' do it { expect(described_class.new('id' => 1).iid).to eq(1) } end diff --git a/spec/lib/bitbucket/representation/pull_request_comment_spec.rb b/spec/lib/bitbucket/representation/pull_request_comment_spec.rb index 151055f510f..cdab683492f 100644 --- a/spec/lib/bitbucket/representation/pull_request_comment_spec.rb +++ b/spec/lib/bitbucket/representation/pull_request_comment_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Bitbucket::Representation::PullRequestComment do +RSpec.describe Bitbucket::Representation::PullRequestComment do describe '#iid' do it { expect(described_class.new('id' => 1).iid).to eq(1) } end diff --git a/spec/lib/bitbucket/representation/pull_request_spec.rb b/spec/lib/bitbucket/representation/pull_request_spec.rb index 6a9df0e5099..6f05d03aa0a 100644 --- a/spec/lib/bitbucket/representation/pull_request_spec.rb +++ b/spec/lib/bitbucket/representation/pull_request_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Bitbucket::Representation::PullRequest do +RSpec.describe Bitbucket::Representation::PullRequest do describe '#iid' do it { expect(described_class.new('id' => 1).iid).to eq(1) } end diff --git a/spec/lib/bitbucket/representation/repo_spec.rb b/spec/lib/bitbucket/representation/repo_spec.rb index a272695e681..a779a153f25 100644 --- a/spec/lib/bitbucket/representation/repo_spec.rb +++ b/spec/lib/bitbucket/representation/repo_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Bitbucket::Representation::Repo do +RSpec.describe Bitbucket::Representation::Repo do describe '#has_wiki?' do it { expect(described_class.new({ 'has_wiki' => false }).has_wiki?).to be_falsey } it { expect(described_class.new({ 'has_wiki' => true }).has_wiki?).to be_truthy } diff --git a/spec/lib/bitbucket/representation/user_spec.rb b/spec/lib/bitbucket/representation/user_spec.rb index 0169887a24c..e1f6c724da8 100644 --- a/spec/lib/bitbucket/representation/user_spec.rb +++ b/spec/lib/bitbucket/representation/user_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Bitbucket::Representation::User do +RSpec.describe Bitbucket::Representation::User do describe '#username' do it 'returns correct value' do user = described_class.new('username' => 'Ben') |