Sha256: 08ac79d8ae90ec3402b89d1fca15d7acab76b5f065a906240d37e2be637641e9
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
require 'spec_helper' RSpec.describe Rails::Service::Context do let(:defaults) { { app: 'square', dc: 'nyc1', host: 'abc1' } } let(:context) { described_class.new(defaults) } describe 'defaults' do it 'should set default values' do expect(context.app).to eq 'square' expect(context.dc).to eq 'nyc1' expect(context.host).to eq 'abc1' end end describe 'dynamic setters/getters' do it 'should set property' do context.foobar = 'foobar' expect(context.foobar).to eq 'foobar' expect(context).to respond_to(:foobar) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-service-0.2.0 | spec/lib/context_spec.rb |
rails-service-0.1.0 | spec/lib/context_spec.rb |