diff options
Diffstat (limited to 'spec/lib/bitbucket/representation/user_spec.rb')
-rw-r--r-- | spec/lib/bitbucket/representation/user_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/lib/bitbucket/representation/user_spec.rb b/spec/lib/bitbucket/representation/user_spec.rb new file mode 100644 index 00000000000..f79ff4edb7b --- /dev/null +++ b/spec/lib/bitbucket/representation/user_spec.rb @@ -0,0 +1,11 @@ +require 'spec_helper' + +describe Bitbucket::Representation::User do + describe '#username' do + it 'returns correct value' do + user = described_class.new('username' => 'Ben') + + expect(user.username).to eq('Ben') + end + end +end |