Commit 4092899855a6476297601107d7c13f2fb658721e
1 parent
aed0150e
Exists in
master
and in
29 other branches
Fix MyNetworkBlock unit tests
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
app/models/my_network_block.rb
1 | 1 | class MyNetworkBlock < Block |
2 | 2 | |
3 | 3 | include Rails.application.routes.url_helpers |
4 | + | |
5 | + attr_accessible :display, :box | |
4 | 6 | |
5 | 7 | def self.description |
6 | 8 | _('My network') |
... | ... | @@ -16,7 +18,7 @@ class MyNetworkBlock < Block |
16 | 18 | |
17 | 19 | def content(args={}) |
18 | 20 | block = self |
19 | - lambda do | |
21 | + proc do | |
20 | 22 | render :file => 'blocks/my_network', :locals => { |
21 | 23 | :title => block.title, |
22 | 24 | :owner => block.owner | ... | ... |
test/unit/my_network_block_test.rb