diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2026-02-13 15:20:06 +0100 |
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2026-02-13 15:20:06 +0100 |
| commit | e1bcb13ef41575021951f0eccc502dd1705dc3d0 (patch) | |
| tree | 76e611bc99b5c0f13ddc8a7164930e151067234f /spec | |
| parent | 922c5e4999884cf40f85ea15684405793e813aa7 (diff) | |
| download | zorglub-e1bcb13ef41575021951f0eccc502dd1705dc3d0.zip zorglub-e1bcb13ef41575021951f0eccc502dd1705dc3d0.tar.gz | |
Node.partial : env & no_hooks -> kw args
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/node_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb index 4e9a5bc..1612510 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -169,17 +169,17 @@ describe Zorglub do end it 'partial should render correctly' do - expect(Node0.partial({}, :do_partial, 1, 2)).to eq 'partial_content' + expect(Node0.partial(:do_partial, 1, 2)).to eq 'partial_content' end it 'method level view should work' do - expect(Node0.partial({}, :other_view)).to eq 'partial_content' + expect(Node0.partial(:other_view)).to eq 'partial_content' end it 'partial with hooks should be default' do Node3.before = 0 Node3.after = 0 - expect(Node3.partial({}, :do_partial, 1, 2)).to eq 'partial_content' + expect(Node3.partial(:do_partial, 1, 2)).to eq 'partial_content' expect(Node3.before).to eq 1 expect(Node3.after).to eq 1 end @@ -187,7 +187,7 @@ describe Zorglub do it 'partial without hooks should work' do Node3.before = 0 Node3.after = 0 - expect(Node3.partial({ no_hooks: true }, :do_partial, 1, 2)).to eq 'partial_content' + expect(Node3.partial(:do_partial, 1, 2, no_hooks: true)).to eq 'partial_content' expect(Node3.before).to eq 0 expect(Node3.after).to eq 0 end |
