Sha256: 26dd53b9e3db9af9dadc7c63b90ad9d26f3b53831bf6d5c0837940bb322e2606

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

require 'spec_helper'

describe Hipbot::User do
  subject { described_class.new(id: '1234', name: 'test bot', mention: 'testbotmention') }

  its(:first_name) { should == 'test' }
  its(:mention) { should == 'testbotmention' }

  describe "when no mention is provided" do
    subject { described_class.new(id: '1234', name: 'test bot name') }
    its(:mention) { should == 'testbotname' }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hipbot-1.0.4 spec/unit/user_spec.rb
hipbot-1.0.3 spec/unit/user_spec.rb
hipbot-1.0.0 spec/unit/user_spec.rb