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