Sha256: b78d3853d70550d675bc118ac7a8e4a686c8c77d3dc706f150cf27afe63c7680
Contents?: true
Size: 1.22 KB
Versions: 10
Compression:
Stored size: 1.22 KB
Contents
require 'spec_helper' describe Zapata::Revolutionist do before(:all) do @generated = exec_generation('app/models/test_array.rb') end it '#test_in_arg' do has_block('#test_in_arg', %Q{ expect(test_array.test_in_arg([2, 7.1, 8])).to eq([2, 7.1, 8]) }) end it '#test_nested_one_level' do has_block('#test_nested_one_level', %Q{ expect(test_array.test_nested_one_level([[2, 7.1, 8], :mexico])).to eq([[2, 7.1, 8], :mexico]) }) end it '#test_nested_two_levels' do has_block('#test_nested_two_levels', %Q{ expect(test_array.test_nested_two_levels([[[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico])).to eq([[[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico]) }) end it '#test_nested_three_levels' do has_block('#test_nested_three_levels', %Q{ expect(test_array.test_nested_three_levels([[[[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico], [[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico])).to eq([[[[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico], [[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico]) }) end it '#test_hash_nested' do has_block('#test_hash_nested', %Q{ expect(test_array.test_hash_nested([{ emiliano: [2, 7.1, 8] }])).to eq([{ emiliano: [2, 7.1, 8] }]) }) end end
Version data entries
10 entries across 10 versions & 1 rubygems