Sha256: 8157d281f439b9059bdb8e7768ec9012b4298779db5f1d414cb05809c9f31a05
Contents?: true
Size: 960 Bytes
Versions: 8
Compression:
Stored size: 960 Bytes
Contents
require 'helper' describe Octospy::Parser do include_context :parser_params describe '#parse_team_add_event' do let(:event_name) { 'team_add_event' } before { parser.instance_variable_set(:@event, event) } subject { parser.parse_team_add_event } it { expect(subject[:status]).to eq 'add team' } it { expect(subject[:title]).to eq 'dev' } it { expect(subject[:body]).to be_nil } it { expect(subject[:link]).to be_nil } end describe '#parse_member_event' do let(:event_name) { 'member_event' } before do client.stub(:web_endpoint).and_return Octokit.web_endpoint parser.instance_variable_set(:@event, event) end subject { parser.parse_member_event } it { expect(subject[:status]).to eq 'added member' } it { expect(subject[:title]).to eq 'jamiesarahg' } it { expect(subject[:body]).to be_nil } it { expect(subject[:link]).to eq 'https://github.com//jamiesarahg' } end end
Version data entries
8 entries across 8 versions & 1 rubygems