summaryrefslogtreecommitdiff
path: root/spec/serializers/entity_request_spec.rb
blob: 86654adfd541c5a658d3cbda672ed69c3e870bf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

describe EntityRequest do
  subject do
    described_class.new(user: 'user', project: 'some project')
  end

  describe 'methods created' do
    it 'defines accessible attributes' do
      expect(subject.user).to eq 'user'
      expect(subject.project).to eq 'some project'
    end

    it 'raises error when attribute is not defined' do
      expect { subject.some_method }.to raise_error NoMethodError
    end
  end
end