19ff9d9899
rails_helper.rb's only logic was to require spec_helper.rb.
19 lines
458 B
Ruby
19 lines
458 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe BlocksJsonSerialization do
|
|
DummyModel = Class.new do
|
|
include BlocksJsonSerialization
|
|
end
|
|
|
|
it 'blocks as_json' do
|
|
expect { DummyModel.new.as_json }
|
|
.to raise_error(described_class::JsonSerializationError, /DummyModel/)
|
|
end
|
|
|
|
it 'blocks to_json' do
|
|
expect { DummyModel.new.to_json }
|
|
.to raise_error(described_class::JsonSerializationError, /DummyModel/)
|
|
end
|
|
end
|