Sha256: 95acc1eef22732d102fa859602551fbd080ac0d605f5d1b0602d92dcea7d4501
Contents?: true
Size: 849 Bytes
Versions: 5
Compression:
Stored size: 849 Bytes
Contents
require 'rspec' shared_examples_for "#scripts" do describe "#scripts" do subject { super().scripts } it { is_expected.to be_kind_of(Hash) } it { is_expected.not_to be_empty } it "should contain String keys" do expect(subject.keys).to all(be_kind_of(String)) end it "should contain String values" do expect(subject.values).to all(be_kind_of(String)) end end end shared_examples_for "#script_data" do describe "#script_data" do subject { super().script_data } it { is_expected.to be_kind_of(Hash) } it { is_expected.not_to be_empty } it "should contain String keys" do expect(subject.keys).to all(be_kind_of(String)) end it "should contain Arrays or Hashes" do expect(subject.values).to all(be_kind_of(Array).or(be_kind_of(Hash))) end end end
Version data entries
5 entries across 5 versions & 1 rubygems