Sha256: 8227ebaeaac41e038d9dc0c6db4cbb04cb5fa9ab75d90bdd9d17d9acbb3859e5

Contents?: true

Size: 300 Bytes

Versions: 18

Compression:

Stored size: 300 Bytes

Contents

require 'spec_helper'

module RailsBestPractices::Core
  describe Klasses do
    it { should be_a_kind_of Array }

    context "Klass" do
      it "should get to_s" do
        klass = Klass.new("BlogPost", "Post", ["Admin"])
        klass.to_s.should == "Admin::BlogPost"
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rails_best_practices-1.14.4 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.14.3 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.14.2 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.14.1 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.14.0 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.13.8 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.13.5 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.13.4 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.13.3 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.13.2 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.13.1 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.13.0 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.12.0 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.11.1 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.11.0 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.10.1 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.10.0 spec/rails_best_practices/core/klasses_spec.rb
rails_best_practices-1.9.1 spec/rails_best_practices/core/klasses_spec.rb