the block attribue of an editable element must always be defined
did
committed Nov 08, 2015
commit 8b6ce415e5eb9dcbfaf94f158cfc9d851f28a6f9
Showing 2
changed files with
11 additions
and 0 deletions
locomotive/steam/entities/editable_element.rb b/lib/locomotive/steam/entities/editable_element.rb
+1
-0
| @@ | @@ -8,6 +8,7 @@ module Locomotive::Steam |
| def initialize(attributes = {}) | |
| super({ | |
| + | block: nil, |
| content: nil, | |
| source: nil, | |
| inline_editing: true | |
spec/unit/entities/editable_element_spec.rb
+10
-0
| @@ | @@ -0,0 +1,10 @@ |
| + | require 'spec_helper' |
| + | |
| + | describe Locomotive::Steam::EditableElement do |
| + | |
| + | let(:attributes) { {} } |
| + | let(:page) { described_class.new(attributes) } |
| + | |
| + | it { expect(page.block).to eq nil } |
| + | |
| + | end |