Sha256: 975964d1a8bd753650580095194312efe3943e22e47dabedfda5ae710a3134de

Contents?: true

Size: 622 Bytes

Versions: 5

Compression:

Stored size: 622 Bytes

Contents

require 'spec_helper'

SimpleCov.command_name('Raw') unless RUBY_VERSION.to_s < '1.9.0'

describe 'Raw, Unit' do

  nodule = CukeModeler::Raw

  before(:each) do
    @element = Object.new.extend(nodule)
  end


  it 'has a raw element - #raw_element' do
    @element.should respond_to(:raw_element)
  end

  it 'can get and set its raw element - #raw_element, #raw_element=' do
    @element.raw_element = :some_raw_element
    @element.raw_element.should == :some_raw_element
    @element.raw_element = :some_other_raw_element
    @element.raw_element.should == :some_other_raw_element
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cuke_modeler-0.3.0 spec/unit/raw_unit_spec.rb
cuke_modeler-0.2.0 spec/unit/raw_unit_spec.rb
cuke_modeler-0.1.0 spec/unit/raw_unit_spec.rb
cuke_modeler-0.0.2 spec/unit/raw_unit_spec.rb
cuke_modeler-0.0.1 spec/unit/raw_unit_spec.rb