Sha256: 89c55e37b56969bdd23784722b56281a42cb43fea4c371697e7d9d34cde0375d

Contents?: true

Size: 613 Bytes

Versions: 6

Compression:

Stored size: 613 Bytes

Contents

require 'spec_helper'

describe FunWithJsonApi::Configuration do
  describe '#force_render_parse_errors_as_json_api?' do
    it 'has a writer method' do
      instance = described_class.new

      instance.force_render_parse_errors_as_json_api = true
      expect(instance.force_render_parse_errors_as_json_api?).to be true

      instance.force_render_parse_errors_as_json_api = false
      expect(instance.force_render_parse_errors_as_json_api?).to be false
    end

    it 'defaults to false by default' do
      expect(described_class.new.force_render_parse_errors_as_json_api?).to be false
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fun_with_json_api-0.0.14 spec/fun_with_json_api/configuration_spec.rb
fun_with_json_api-0.0.13 spec/fun_with_json_api/configuration_spec.rb
fun_with_json_api-0.0.11.3 spec/fun_with_json_api/configuration_spec.rb
fun_with_json_api-0.0.11.2 spec/fun_with_json_api/configuration_spec.rb
fun_with_json_api-0.0.11.1 spec/fun_with_json_api/configuration_spec.rb
fun_with_json_api-0.0.11 spec/fun_with_json_api/configuration_spec.rb