Sha256: 4e3290718737461a05c236c901bc485f16cab6ed97a496e8d524d848056aeca3
Contents?: true
Size: 650 Bytes
Versions: 5
Compression:
Stored size: 650 Bytes
Contents
# encoding: utf-8 describe Policy do describe ".new" do subject { described_class.new :debet, :credit } it "builds the Struct" do expect(subject.ancestors).to include Struct end it "adds required attributes" do methods = subject.instance_methods %i(debet debet= credit credit=).each do |method| expect(methods).to include method end end it "includes Policy::Interface" do expect(subject).to include(Policy::Interface) end end # describe .new describe ".name" do subject { described_class.name } it { is_expected.to eq "Policy" } end end # describe Policy
Version data entries
5 entries across 5 versions & 1 rubygems