Sha256: 22b1ec6545f8b2edffed6e5f2e3bf047706adef7a6ccfb7c210449ee6ad1ae8c
Contents?: true
Size: 564 Bytes
Versions: 3
Compression:
Stored size: 564 Bytes
Contents
require 'spec_helper' describe Inesita::Injection do let(:application) { Inesita::Application } let(:injection) { Class.new { include Inesita::Injection } } let(:layout) { Class.new { include Inesita::Layout } } it 'should respond to #render!' do expect(injection.new).to respond_to(:render!) end it 'should respond to #root_component' do expect(injection.new).to respond_to(:root_component) end it 'should respond to injection name method' do expect(application.new(layout: layout, test: injection)).to respond_to(:test) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
inesita-0.6.1 | spec/opal/injecion_spec.rb |
inesita-0.6.0 | spec/opal/injecion_spec.rb |
inesita-0.6.0.beta.1 | spec/opal/injecion_spec.rb |