Sha256: 500735540c2071f3e9fb79bbf0f0a5c74a861db92e489df840d9fc3987298b88

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

require 'rails_helper'

RSpec.describe 'TestStrictService' do

  it 'returns false value for error object' do
    result = TestStrictService.call test: false
    expect(result.success?).to equal false
  end

  it 'returns true value for success object' do
    result = TestStrictService.call test: true
    expect(result.success?).to equal true
  end

  it 'included at_your_service' do
    expect(TestStrictService).to include (AtYourService)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
at_your_service-1.1.0 rails_test/rails_app/spec/services/test_strict_services_spec.rb