Sha256: 9711ecd91ee65b7cd10eabf3680e5c5f3d5c5432906960bd949b4dd77bcd0eb5
Contents?: true
Size: 607 Bytes
Versions: 16
Compression:
Stored size: 607 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_path) } describe "#files" do it "should find haml-files" do expect(files.length).to eq 29 end it "should find haml-files" do expect(file_paths).to include "app/views/users/index.html.haml" end it "should find erb-files" do expect(file_paths).to include "app/views/users/show.html.erb" end end end
Version data entries
16 entries across 16 versions & 1 rubygems