This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="signup"> | |
| <h2>Sign up</h2> | |
| <form action="/users" class="new_user" id="new_user" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="BCbQMh7OAmJVlhuAUUlxNznBX/cXOQgxI9gSwTKNxMQ=" /></div> | |
| <div class="text_field"> | |
| <label for="user_email">Email</label> | |
| <input id="user_email" name="user[email]" size="30" type="text" /> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user=> (defn big[n] (> n 2)) | |
| #'user/big | |
| user=> (filter big '(1 2 3)) | |
| (3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 22:09 ~ $ erl | |
| Erlang (BEAM) emulator version 5.6.4 [source] [smp:2] [async-threads:0] [kernel-poll:false] | |
| Eshell V5.6.4 (abort with ^G) | |
| 1> httpd_util:rfc1123_date(calendar:universal_time()). | |
| "Sat, 14 Mar 2009 07:02:55 GMT" | |
| 2> httpd_util:rfc1123_date(erlang:localtime()). | |
| "Sat, 14 Mar 2009 03:03:03 GMT" | |
| 3> calendar:universal_time(). | |
| {{2009,3,14},{3,4,37}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 16:29 ~ $ irb | |
| >> class Object | |
| >> def echo | |
| >> puts self | |
| >> end | |
| >> end | |
| => nil | |
| >> require 'activesupport' | |
| => true | |
| >> (1..10).each(&:echo) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scenario: Non-Administrator | |
| Given a user exists with login "normal_user" and password "normal_password" | |
| When I log in as "normal_user" with password "normal_password" | |
| When I go to /users | |
| Then I should go to the home page | |
| And I should see an error message |
NewerOlder