Sha256: 7e0d1ab3cb527e6692ae7afd06be4100251ac28c35916c62819dff30c1c5c99d
Contents?: true
Size: 1.64 KB
Versions: 2
Compression:
Stored size: 1.64 KB
Contents
require 'test_helper' module Vedeu module Generator class HelpersTestClass include Vedeu::Generator::Helpers def initialize(name) @name = name end end # HelpersTestClass describe Helpers do let(:described) { Vedeu::Generator::Helpers } let(:instance) { Vedeu::Generator::HelpersTestClass.new(_name) } let(:_name) { 'my_first_app' } # describe '#app_name' do # subject { instance.app_name } # it { subject.must_equal('MyFirstApp') } # end describe '#app_name_as_snake_case' do let(:_name) { 'MyFirstApp' } subject { instance.app_name_as_snake_case(_name) } it { subject.must_equal('my_first_app') } end describe '#make_file' do let(:source) {} let(:destination) {} subject { instance.make_file(source, destination) } end describe '#name' do let(:_name) { 'My_First_APP' } subject { instance.name } it { subject.must_be_instance_of(String) } it { subject.must_equal('my_first_app') } end describe '#name_as_class' do subject { instance.name_as_class } it { subject.must_be_instance_of(String) } it { subject.must_equal('MyFirstApp') } end describe '#parse_file' do let(:source) {} subject { instance.parse_file(source) } end describe '#source' do subject { instance.source } it { subject.must_be_instance_of(String) } it { subject.must_match('vedeu/generator/templates/application/.') } end end # Helpers end # Generator end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.37 | test/lib/vedeu/generator/helpers_test.rb |
vedeu-0.4.36 | test/lib/vedeu/generator/helpers_test.rb |