Sha256: 6f12ff5085dac67739c3ac1d6488660bd60cf9a8d7e709a228e2853f1925852d

Contents?: true

Size: 1.42 KB

Versions: 6

Compression:

Stored size: 1.42 KB

Contents

require 'rails_helper'

describe TestSend do
  let(:test_send) do
    TestSend.new
  end

  it '#another_method_as_arg' do
    expect(test_send.another_method_as_arg('Help method')).to eq('Help method')
  end

  it '#second_level_method_chain' do
    expect(test_send.second_level_method_chain('Help method')).to eq('Help method')
  end

  it '#third_level_method_chain' do
    expect(test_send.third_level_method_chain('Help method')).to eq('Help method')
  end

  it '#method_with_calculated_value' do
    expect(test_send.method_with_calculated_value('Missing "calculated_value"')).to eq('Missing "calculated_value"')
  end

  it '#to_another_object' do
    expect(test_send.to_another_object(AnotherObject.my_name)).to eq('Domas')
  end

  it '#to_another_object_with_params' do
    expect(test_send.to_another_object_with_params(AnotherObject.send_with_params(12))).to eq('Id was 12')
  end

  it '#not_explicit_with_params' do
    expect(test_send.not_explicit_with_params('Could you find it?')).to eq('Could you find it?')
  end

  it '#fail_to_understand' do
    expect(test_send.fail_to_understand('Missing "failure"')).to eq('Missing "failure"')
  end
end

describe AnotherObject do
  let(:another_object) do
    AnotherObject.new
  end

  it '#my_name' do
    expect(AnotherObject.my_name).to eq('Domas')
  end

  it '#send_with_params' do
    expect(AnotherObject.send_with_params('Missing "id"')).to eq('Id was Missing "id"')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zapata-0.1.2 spec/support/rails_test_app/spec/models/test_send_spec.rb
zapata-0.1.1 spec/support/rails_test_app/spec/models/test_send_spec.rb
zapata-0.1.0 spec/support/rails_test_app/spec/models/test_send_spec.rb
zapata-0.0.3 spec/support/rails_test_app/spec/models/test_send_spec.rb
zapata-0.0.2 spec/support/rails_test_app/spec/models/test_send_spec.rb
zapata-0.0.1 spec/support/rails_test_app/spec/models/test_send_spec.rb