Sha256: 4fd12c5681ac9a6bd300019f508ecc7f7486a254398eee96540a57ba0a47ec1d

Contents?: true

Size: 608 Bytes

Versions: 9

Compression:

Stored size: 608 Bytes

Contents

require "spec_helper"

describe AwesomeTranslations::ErbInspector do
  let(:erb_inspector) do
    AwesomeTranslations::ErbInspector.new(
      dirs: [Rails.root.to_s]
    )
  end

  let(:files) { erb_inspector.files.to_a }
  let(:file_paths) { files.map { |file| file.file_path } }

  describe "#files" do
    it "should find haml-files" do
      files.length.should eq 29
    end

    it "should find haml-files" do
      file_paths.should include "app/views/users/index.html.haml"
    end

    it "should find erb-files" do
      file_paths.should include "app/views/users/show.html.erb"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
awesome_translations-0.0.24 spec/lib/erb_inspector_spec.rb
awesome_translations-0.0.23 spec/lib/erb_inspector_spec.rb
awesome_translations-0.0.22 spec/lib/erb_inspector_spec.rb
awesome_translations-0.0.21 spec/lib/erb_inspector_spec.rb
awesome_translations-0.0.20 spec/lib/erb_inspector_spec.rb
awesome_translations-0.0.19 spec/lib/erb_inspector_spec.rb
awesome_translations-0.0.18 spec/lib/erb_inspector_spec.rb
awesome_translations-0.0.17 spec/lib/erb_inspector_spec.rb
awesome_translations-0.0.16 spec/lib/erb_inspector_spec.rb