Sha256: 29243eab1fa5e04cafafc3408cf75ca97775b14dccffc636fab0bb0eba06b4b6
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
RSpec.shared_examples "an agent" do its(:type) { is_expected.to eq([type]) } its(:agent_type) { is_expected.to eq(agent_type) } its(:agent_name) { is_expected.to eq(subject.name.first) } its(:to_s) { is_expected.to eq(subject.name.first) } it { is_expected.to be_valid } describe "isomorphism" do it { is_expected.to eq(described_class.build(subject.name.first)) } it { is_expected.to eq(described_class.build(subject)) } it { is_expected.not_to eq(FactoryGirl.build(agent_type)) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddr-models-1.13.1 | spec/support/shared_examples_for_agents.rb |
ddr-models-1.13.0 | spec/support/shared_examples_for_agents.rb |