spec/girdle/grid_spec.rb in girdle-0.0.4 vs spec/girdle/grid_spec.rb in girdle-0.0.5

- old
+ new

@@ -1,32 +1,32 @@ require_relative '../spec_helper' -describe Griddle::Grid do +describe Girdle::Grid do it 'must have id attribute' do - grid = Griddle::Grid.new(123) + grid = Girdle::Grid.new(123) grid.id.must_equal 123 end it 'must retrieve list identifiers of all logical grids' do - Griddle.expects(:run).with(grid: 'list').returns([1,2,3]) - list = Griddle::Grid.list + Girdle.expects(:run).with(grid: 'list').returns([1,2,3]) + list = Girdle::Grid.list list.must_equal [1,2,3] end describe 'a grid' do before do - @grid = Griddle::Grid.new(123) + @grid = Girdle::Grid.new(123) @attributes = { 'name' => 'name', 'gridMegahertz' => '0', 'isDefault' => 'YES' } end it 'must retrieve attributes' do - Griddle.expects(:run).with(grid: 'attributes', gid: 123).returns('gridAttributes' => @attributes) + Girdle.expects(:run).with(grid: 'attributes', gid: 123).returns('gridAttributes' => @attributes) @grid.attributes.must_equal @attributes end it 'must retrieve name' do @grid.expects(:attributes).returns(@attributes) \ No newline at end of file