Sha256: fe31679c1d48c8ebc825267d3b82b507ccf1d2339cab8c7f8a6c9eae7abc85ed

Contents?: true

Size: 480 Bytes

Versions: 8

Compression:

Stored size: 480 Bytes

Contents

require 'integration_spec_helper'

describe ActiverecordToPoro::DefaultPoroClassBuilder do
  subject{
    ActiverecordToPoro::DefaultPoroClassBuilder.new(User)
  }

  let(:expected_poro_class){
    Yaoc::Helper::StructHE(:name, :email, :roles, :salutation, :address, :permissions, :lock_version)
  }

  describe "#call" do

    it "creates a poro class for an ActiveRecord class" do
      expect(subject.call.members.sort).to eq expected_poro_class.members.sort
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
activerecord_to_poro-0.0.9 spec/integration/lib/activerecord_to_poro/default_poro_class_builder_spec.rb
activerecord_to_poro-0.0.8 spec/integration/lib/activerecord_to_poro/default_poro_class_builder_spec.rb
activerecord_to_poro-0.0.7 spec/integration/lib/activerecord_to_poro/default_poro_class_builder_spec.rb
activerecord_to_poro-0.0.6 spec/integration/lib/activerecord_to_poro/default_poro_class_builder_spec.rb
activerecord_to_poro-0.0.5 spec/integration/lib/activerecord_to_poro/default_poro_class_builder_spec.rb
activerecord_to_poro-0.0.4 spec/integration/lib/activerecord_to_poro/default_poro_class_builder_spec.rb
activerecord_to_poro-0.0.3 spec/integration/lib/activerecord_to_poro/default_poro_class_builder_spec.rb
activerecord_to_poro-0.0.2 spec/integration/lib/activerecord_to_poro/default_poro_class_builder_spec.rb