Sha256: 8d8881506c56ce7c82242176694be4c89c0442c83b87becb6b623607e7fe1c58
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 Bytes
Contents
require 'spec_helper' describe Rspec::PowerAssert do describe Array do describe "#map" do let(:array) { [1, 2, 3] } subject { %w(a b c) } before do @array = [1, 2, 3] end it do is_asserted_by { subject.map(&:upcase) == array } end it do upcased = subject.map(&:upcase) upcased.pop is_asserted_by { upcased == @array } end it do is_expected.to eq %w(a b c) is_asserted_by { subject.map(&:upcase) == %w(A B C) } end it "should transform array" do is_expected.to eq %w(a b c) is_asserted_by { subject.map(&:upcase) == %w(A B C) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-power_assert-0.0.2 | spec/rspec/power_assert_spec.rb |
rspec-power_assert-0.0.1 | spec/rspec/power_assert_spec.rb |