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

18 lines
326 B
Ruby

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
end