Sha256: 75cac5156460dbb0ae0d1318d5955fc46846db9f6706661a11caef4b1df65baf

Contents?: true

Size: 462 Bytes

Versions: 8

Compression:

Stored size: 462 Bytes

Contents

require "spec_helper"

class Rails
  def self.root
    '/path/to/rails'
  end
end

describe Rescpos::Configuration do
  it "has a default template path app/escposes" do
    Rescpos.configuration.template_path.should == File.join(Rails.root, "app/escposes")
  end

  it "could set the path of templates" do
    Rescpos.configure do |config|
      config.template_path = "templates"
    end

    Rescpos.configuration.template_path.should == "templates"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rescpos-0.0.9 spec/lib/rescpos/configuration_spec.rb
rescpos-0.0.8 spec/lib/rescpos/configuration_spec.rb
rescpos-0.0.7 spec/lib/rescpos/configuration_spec.rb
rescpos-0.0.6 spec/lib/rescpos/configuration_spec.rb
rescpos-0.0.5 spec/lib/rescpos/configuration_spec.rb
rescpos-0.0.3 spec/lib/rescpos/configuration_spec.rb
rescpos-0.0.2 spec/lib/rescpos/configuration_spec.rb
rescpos-0.0.1 spec/lib/rescpos/configuration_spec.rb