You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/spec/models/snapshot_spec.rb

24 lines
431 B
Ruby

require 'spec_helper'
describe Snapshot do
describe '#==' do
let(:snapshot) { Snapshot.new([:foo]) }
subject { snapshot == other }
context "when the other has the same lines" do
let(:other) { Snapshot.new([:foo]) }
it { should be(true) }
end
context "when the other has a different lines" do
let(:other) { Snapshot.new([:foo, :bar]) }
it { should be(false) }
end
end
end