Sha256: 40aa9a8c53f798c567fa375a61d2f0c5bddac503012bb001d75aa93fce83522c
Contents?: true
Size: 607 Bytes
Versions: 3
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| file.file_path } } describe "#files" do it "should find haml-files" do files.length.should eq 4 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
awesome_translations-0.0.4 | spec/lib/erb_inspector_spec.rb |
awesome_translations-0.0.3 | spec/lib/erb_inspector_spec.rb |
awesome_translations-0.0.2 | spec/lib/erb_inspector_spec.rb |