0
0
Fork 0
rubella/spec/unit/rubella/input/base/new_spec.rb

18 lines
326 B
Ruby
Raw Normal View History

2015-05-01 12:43:01 +02:00
require 'spec_helper'
describe Rubella::Input::Base, '.new' do
it "creates a new Input instance" do
input = Rubella::Input::Base.new nil
expect(input).to be_instance_of(Rubella::Input::Base)
end
it "uses the given data" do
input = Rubella::Input::Base.new 54
expect(input.data).to eq(54)
end
2015-10-22 12:11:16 +02:00
end