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/decorators/asciicast_decorator_spec.rb

13 lines
313 B
Ruby

require 'spec_helper'
describe AsciicastDecorator do
describe '#os' do
it 'returns "unknown" when uname is blank' do
asciicast = Asciicast.new
asciicast.uname = nil
decorated_asciicast = AsciicastDecorator.new(asciicast)
decorated_asciicast.os.should == 'unknown'
end
end
end