Sha256: 8c4368cfa90e3d2fa5795fd9b1ba1b2429426477ecab0063ddf980989daa0f3e

Contents?: true

Size: 1.12 KB

Versions: 18

Compression:

Stored size: 1.12 KB

Contents

GCC_JSON = File.join(File.dirname(__FILE__),"..","lib","cxxproject","toolchain","gcc.json")
require 'cxxproject/toolchain/toolchain'

# describe String do
#   it 'should correctly load toolchain from json file' do
#     tc = Toolchain.new(GCC_JSON)
#     tc.name.should == "gcc"
#     tc.compiler.cpp.command.should == "g++"
#     tc.compiler.c.source_file_endings.should == [".c"]
#     tc.linker.output_ending == ".exe"
#   end
# 
#   it 'should be possible to add list items to existing settings' do
#     tc = Toolchain.new(GCC_JSON)
#     tc.compiler.c.source_file_endings.should == [".c"]
#     tc.compiler.c.source_file_endings << ".cc"
#     tc.compiler.c.source_file_endings.should == [".c",".cc"]
#     tc.compiler.c.source_file_endings << ".aa"
#     tc.compiler.c.source_file_endings.should == [".c",".cc",".aa"]
#   end
# 
#   it "should be possible to replace existing settings" do
#     tc = Toolchain.new(GCC_JSON)
#     tc.compiler.c.source_file_endings.should == [".c"]
#     tc.compiler.c.source_file_endings = [".cc"]
#     tc.compiler.c.source_file_endings.should == [".cc"]
#   end
# 
# end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
cxxproject-0.5.76 spec/toolchain_spec.rb
cxxproject-0.5.75 spec/toolchain_spec.rb
cxxproject-0.5.74 spec/toolchain_spec.rb
cxxproject-0.5.73 spec/toolchain_spec.rb
cxxproject-0.5.72 spec/toolchain_spec.rb
cxxproject-0.5.71 spec/toolchain_spec.rb
cxxproject-0.5.70 spec/toolchain_spec.rb
cxxproject-0.5.69 spec/toolchain_spec.rb
cxxproject-0.5.68 spec/toolchain_spec.rb
cxxproject-0.5.67 spec/toolchain_spec.rb
cxxproject-0.5.66 spec/toolchain_spec.rb
cxxproject-0.5.65 spec/toolchain_spec.rb
cxxproject-0.5.64 spec/toolchain_spec.rb
cxxproject-0.5.63 spec/toolchain_spec.rb
cxxproject-0.5.62 spec/toolchain_spec.rb
cxxproject-0.5.61 spec/toolchain_spec.rb
cxxproject-0.5.60 spec/toolchain_spec.rb
cxxproject-0.5.59 spec/toolchain_spec.rb