Sha256: 8b9e922044cd57b3432fe32067aab5a66e8fdace2dea0a1a67cb96ecf6d723d7
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true RSpec.describe Gladwords::Commands::Create do include_context 'labels' subject(:command) do relation.command(:create) end let(:service) { label_service } let(:relation) { labels } it 'creates a label' do name = SecureRandom.hex subject.call(name: name, xsi_type: 'TextLabel') rel = relation.where(label_name: name) expect(rel.first[:name]).to eq name rel.command(:delete).call end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gladwords-1.0.1 | spec/integration/commands/create_spec.rb |