Sha256: f69ac58658538dbabdf154164bab7333d208aaf520a635cb6c6fa21a4018d402
Contents?: true
Size: 808 Bytes
Versions: 6
Compression:
Stored size: 808 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.model_class).to eq(TextService::Models::Text) expect(command.Serializer).to eq(TextService::Serializers::Text) expect(Command::Serializer).to eq(TextService::Serializers::Text) expect(Command.serializer_class).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
6 entries across 6 versions & 1 rubygems