right-rails 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -122,7 +122,12 @@ describe RightRails::Helpers::Rails do
|
|
122
122
|
end
|
123
123
|
|
124
124
|
describe "#form_remote_tag" do
|
125
|
-
it "should generate a
|
125
|
+
it "should generate a simple remote form".should do
|
126
|
+
form_remote_tag(:url => '/boo').should ==
|
127
|
+
%Q{<form action="/boo" method="post" onsubmit="$(this).send(); return false;">}
|
128
|
+
end
|
129
|
+
|
130
|
+
it "should generate a proper remote form with options" do
|
126
131
|
form_remote_tag(:url => '/boo', :spinner => 'spinner').should ==
|
127
132
|
%Q{<form action="/boo" method="post" onsubmit="$(this).send({spinner:'spinner'}); return false;">}
|
128
133
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikolay Nemshilov
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-01 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|