Sha256: 020f5dca34490ad699524c7164108e790b66a9099d19f2203ef825b726081afa

Contents?: true

Size: 701 Bytes

Versions: 10

Compression:

Stored size: 701 Bytes

Contents

require 'rails_helper'

describe RobotToTest do
  let(:robot_to_test) do
    RobotToTest.new('Emiliano', { planets: ['Mars', Human.home] })
  end

  it '#robot_name' do
    expect(robot_to_test.robot_name('Emiliano')).to eq('Robot_Emiliano')
  end

  it '#cv' do
    expect(robot_to_test.cv).to eq({ planets: ['Mars', 'Earth'] })
  end

  it '#nested_fun_objects' do
    expect(robot_to_test.nested_fun_objects([[:array, :in, :array], { hash: { in_hash: { in: ['array'] } } }])).to eq('It was fun')
  end

  it '#prefix' do
    expect(RobotToTest.prefix).to eq('Robot')
  end
end

describe Human do
  let(:human) do
    Human.new
  end

  it '#home' do
    expect(Human.home).to eq('Earth')
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
zapata-0.1.6 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb
zapata-0.1.5 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb
zapata-0.1.4 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb
zapata-0.1.3 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb
zapata-0.1.2 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb
zapata-0.1.1 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb
zapata-0.1.0 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb
zapata-0.0.3 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb
zapata-0.0.2 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb
zapata-0.0.1 spec/support/rails_test_app/spec/models/robot_to_test_spec.rb