spec/polytrix/validator_registry_spec.rb in polytrix-0.1.2 vs spec/polytrix/validator_registry_spec.rb in polytrix-0.1.3
- old
+ new
@@ -8,20 +8,20 @@
expect(challenge[:result]).to_not be_nil
expect(challenge[:result].execution_result.exitstatus).to eq(0)
end
expect(registry.validators).to be_empty
- registry.register(Validator.new('dummy', suite: 'java', sample: 'hello world', &callback))
+ registry.register(Validator.new('dummy', suite: 'java', scenario: 'hello world', &callback))
validator = registry.validators.first
expect(validator.suite).to eql('java')
- expect(validator.sample).to eql('hello world')
+ expect(validator.scenario).to eql('hello world')
expect(validator.instance_variable_get('@callback')).to eql(callback)
end
end
describe '#validators_for' do
- let(:java_hello_world_validator) { Fabricate(:validator, suite: 'java', sample: 'hello world') }
- let(:java_validator) { Fabricate(:validator, suite: 'java', sample: //) }
+ let(:java_hello_world_validator) { Fabricate(:validator, suite: 'java', scenario: 'hello world') }
+ let(:java_validator) { Fabricate(:validator, suite: 'java', scenario: //) }
let(:ruby_validator) { Fabricate(:validator, suite: 'ruby') }
before do
registry.register(java_hello_world_validator)
registry.register(java_validator)