12 lines
204 B
Ruby
12 lines
204 B
Ruby
|
require 'spec_helper'
|
||
|
|
||
|
describe Rubella::Input::JSON, '.data' do
|
||
|
|
||
|
it "returns the stored data" do
|
||
|
input = Rubella::Input::JSON.string "[3, 4, 5]"
|
||
|
|
||
|
expect(input.data).to eq([3, 4, 5])
|
||
|
end
|
||
|
|
||
|
end
|