Sha256: 19504809aeaeb1832e98b25d517c0e1a2be407dd6c6590df8a7151cf4bb3319a
Contents?: true
Size: 664 Bytes
Versions: 2
Compression:
Stored size: 664 Bytes
Contents
require 'spec_helper' describe RestPack::Service::Command do context 'with a commands in a namespace like TextService::Commands::Text::Reverse' do it 'defines aliases' do Command = TextService::Commands::Text::Reverse command = Command.new expect(Command::Model).to eq(TextService::Models::Text) expect(command.Model).to eq(TextService::Models::Text) expect(Command::Serializer).to eq(TextService::Serializers::Text) expect(command.Serializer).to eq(TextService::Serializers::Text) expect(Command::Commands).to eq(TextService::Commands) expect(Command::Models).to eq(TextService::Models) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restpack_service-0.0.77 | spec/command_spec.rb |
restpack_service-0.0.76 | spec/command_spec.rb |