Sha256: de325e018382e8862185060a0723579a4d8d595f7bb346a365a7da4a9dbf92af
Contents?: true
Size: 1.49 KB
Versions: 65
Compression:
Stored size: 1.49 KB
Contents
require "buildtasks/manifest/spec_helper" # Creates combined entries for javascript & css describe "manifest:prepare_build_tasks:Strings" do include SC::SpecHelpers include SC::ManifestSpecHelpers before do std_before end def run_task @manifest.prepare! super('manifest:prepare_build_tasks:strings') end it "should run setup & javascript as prereq" do should_run("manifest:prepare_build_tasks:setup") { run_task } should_run("manifest:prepare_build_tasks:javascript") { run_task } end it "should add strings entry if strings.js is found" do run_task @manifest.entry_for('source/lproj/strings.js').should_not be_nil # precondition @manifest.entry_for('strings.yaml', :hidden => true).should_not be_nil end describe "transform entry" do before do run_task @entry = @manifest.entry_for('strings.yaml', :hidden => true) end it "should hide entry" do @entry.should be_hidden end it "has entry_type = :strings" do @entry.entry_type.should == :strings end it "should not hide source entry" do @entry.source_entry.should_not be_hidden end it "has source/lproj/strings.js as source entry" do @entry.source_entry.filename.should == 'source/lproj/strings.js' end it "has ext of 'yaml'" do @entry.ext.should == 'yaml' @entry.filename.should =~ /\.yaml$/ end it "has build task of build:strings" do @entry.build_task.to_s.should == 'build:strings' end end end
Version data entries
65 entries across 65 versions & 1 rubygems