Sha256: 652321f1e6e638a679687feab8c75625afd52205c9628f95661af9ae6bcca239
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
describe Skala::Transformation::Step do context "when initialized with a transformation" do let(:transformation) do Class.new(Skala::Transformation) do def some_transformation_method true end end.new end let(:step) do described_class.new(transformation) end describe "#transformation" do it "allows access to the transformation" do expect(step.transformation).to be(transformation) end end context "if a unknown method is called" do context "if the transformation has a matching method" do it "calls the method on the transformation" do expect(step).to respond_to(:some_transformation_method) expect(step.some_transformation_method).to eq(transformation.some_transformation_method) end end context "if the transformation has no matching method" do it "raises an error" do expect { step.some_unknown_method }.to raise_error end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
skala-0.3.0 | spec/skala/transformation/step_spec.rb |
skala-0.2.0 | spec/skala/transformation/step_spec.rb |