This file contains 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
Application Trace: | |
app/views/posts/_form.html.haml:25:in `block in _app_views_posts__form_html_haml___3252204871371051419_2186810440' | |
app/views/posts/_form.html.haml:1:in `_app_views_posts__form_html_haml___3252204871371051419_2186810440' | |
app/views/posts/new.html.haml:3:in `_app_views_posts_new_html_haml___3925115510830348758_2188475320' | |
app/controllers/posts_controller.rb:56:in `block (2 levels) in create' | |
app/controllers/posts_controller.rb:51:in `create' | |
Framework Trace: |
This file contains 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
$ curl -X GET "http://localhost:9200/testapp_development_reports/report/_search?load=true&pretty=true" -d '{query":{"query_string":{"query":"contains","default_operator":"AND"}},"highlight":{"fields":{"attachment":{}}}}' | |
{ | |
"took" : 1, | |
"timed_out" : false, | |
"_shards" : { | |
"total" : 1, | |
"successful" : 1, | |
"failed" : 0 | |
}, | |
"hits" : { |
This file contains 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
$ rvm --trace requirements ruby-2.0.0 | |
+ [[ -n '' ]] | |
+ set -o errtrace | |
+ export 'PS4=+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ PS4='+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ 1368219187.N /scripts/cli : __rvm_parse_args() 709 > [[ -z '' ]] | |
+ 1368219187.N /scripts/cli : __rvm_parse_args() 709 > [[ -n '' ]] | |
+ 1368219187.N /scripts/cli : __rvm_parse_args() 712 > [[ error == '' ]] | |
+ 1368219187.N /scripts/cli : __rvm_parse_args() 712 > [[ 0 -eq 1 ]] | |
+ 1368219187.N /scripts/cli : __rvm_parse_args() 712 > [[ -n '' ]] |
This file contains 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
$ rvm --debug requirements | |
rvm_autolibs_flag=read-fail | |
Installing requirements for osx, might require sudo password. | |
requirements code for osx loaded | |
Found required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libxml2, libxslt, libksba, sqlite, openssl. | |
Skipping installation, make sure listed packages are installed. | |
RVM autolibs is now configured with mode '2' => 'check and stop if missing', | |
please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]` | |
or visit https://rvm.io/rvm/autolibs for more information. | |
__rvm_rm_rf already gone: /usr/local/rvm/tmp/38402* |
This file contains 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
$ rvm requirements | |
Installing requirements for osx, might require sudo password. | |
Cloning into '/usr/local/Library/Taps/homebrew-dupes'... | |
remote: Counting objects: 892, done. | |
remote: Compressing objects: 100% (486/486), done. | |
remote: Total 892 (delta 492), reused 793 (delta 406) | |
Receiving objects: 100% (892/892), 154.47 KiB, done. | |
Resolving deltas: 100% (492/492), done. | |
Tapped 42 formula | |
Checking out files: 100% (1246/1246), done. |
This file contains 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
$ rvm all --verbose do gem env gemhome | |
ruby-1.9.2-p0: ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] | |
/Users/mbd2/.rvm/gems/ruby-1.9.2-p0 | |
ruby-1.9.2-p136: ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.5.0] | |
/Users/mbd2/.rvm/gems/ruby-1.9.2-p136 | |
Gemset '' does not exist, 'rvm gemset create ' first, or append '--create'. | |
ruby-1.9.2-p290: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0] | |
/Users/mbd2/.rvm/gems/ruby-1.9.2-p290 | |
ruby-1.9.2-rc2: ruby 1.9.2dev (2010-07-11 revision 28618) [x86_64-darwin10.4.0] | |
/Users/mbd2/.rvm/gems/ruby-1.9.2-rc2 |
This file contains 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
heli:~ admin$ rvm -v | |
rvm 1.21.2 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] | |
heli:~ ladmin$ rvm get stable | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 13478 100 13478 0 0 4862 0 0:00:02 0:00:02 --:--:-- 4862 | |
Downloading RVM from wayneeseguin branch stable | |
% Total % Received % Xferd Average Speed Time Time Time Current |
This file contains 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
$ rvm get head | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 13525 100 13525 0 0 12763 0 0:00:01 0:00:01 --:--:-- 162k | |
Downloading RVM from wayneeseguin branch master | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 1071k 100 1071k 0 0 233k 0 0:00:04 0:00:04 --:--:-- 276k | |
Upgrading the RVM installation in /usr/local/rvm/ |
This file contains 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
#Model | |
expect(@user).to have(1).error_on(:username) # Checks whether there is an error in username | |
expect(@user.errors[:username]).to include("can't be blank") # check for the error message | |
#Rendering | |
expect(response).to render_template(:index) | |
#Redirecting | |
expect(response).to redirect_to(movies_path) |