Sha256: 11c412188af64a3f15b338b28f24f826c76d13080d846c8f1662e8e724070ac8
Contents?: true
Size: 293 Bytes
Versions: 26
Compression:
Stored size: 293 Bytes
Contents
When(/^I create an instance of the "([^"]*)" class with id "([^"]*)"$/) do |klass, id| @model_instance = (Object.const_get klass.classify).new(id) end Then(/^I model created should have "([^"]*)" "([^"]*)"$/) do |method, value| expect(@model_instance.send(method.to_sym)).to eq(value) end
Version data entries
26 entries across 26 versions & 1 rubygems