Sha256: 27ce3e7d057d19814d2571f5b92989b2130b964a5ef4129e2327f55019ff4f7c

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'

describe "A Cheezburger subclass of SuperModel::Base nested in a Lolcat subclass of SuperModel::Base" do
  before(:all) do
    class Lolcat < SuperModel::Base
      class Cheezburger < SuperModel::Base
      end
    end
  end

  it "should have a base_class of Lolcat::Cheezburger" do
    Lolcat.base_class.should == Lolcat
    Lolcat::Cheezburger.base_class.should == Lolcat::Cheezburger
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arunthampi-supermodel-0.1.0 spec/base/nested_class_spec.rb