@codenamecrud

Страница 78 из 1009
Adamtsov
24.04.2016
14:07:16
еще можешь попробывать click_link на click_on поменять

Kirill
24.04.2016
14:07:27
это всё тоже пробовал

Adamtsov
24.04.2016
14:07:48
ошибка в том, что он не может найти ссылку на странице, а по факту ссылка есть?

Kirill
24.04.2016
14:07:52
наконец-то сохранил в tmp страничку куда он идёт, так вот страница не найдена

Google
Kirill
24.04.2016
14:08:24
я просто не понимаю на какой экшен он js: true делает

Adamtsov
24.04.2016
14:08:46
вот есть у тебя ссылка link_to 'Test', tests_path

Kirill
24.04.2016
14:08:59
в before нужно пойти на страницу с комментариями, там кликнуть на ссылку отредактировать комментарий и аяксом должна появиться форма вместо этого комментария

Adamtsov
24.04.2016
14:09:03
если ссылка без remote: true, то он просто открывает страницу

а если link_to 'Test', tests_path, remote: true, то он делает ajax запрос

Kirill
24.04.2016
14:10:08
на вьюхе у меня как раз такая ссылка: вот = link_to 'Edit', edit_category_theme_comment_path(@category, @theme, comment), remote: true, class: 'glyphicon glyphicon-pencil comment-edit'

Adamtsov
24.04.2016
14:10:47
а сам текст 'Edit' есть на странице?

Kirill
24.04.2016
14:10:59
да, конечно

я и по классу пробовал обращаться

через find('.comment-edit').click

capybara-webkit стоит

Adamtsov
24.04.2016
14:12:50
а ссылка есть когда ты save_and_open_page делаешь?

Kirill
24.04.2016
14:13:48
я делал уже в теле 'it', там он уже перешёл куда-то, поэтому нет

Google
Adamtsov
24.04.2016
14:14:30
scenario 'shows the editing form', js: true do save_and_open_page end

что получается?

Kirill
24.04.2016
14:15:07
The page you were looking for doesn't exist.

как и сказал)

Adamtsov
24.04.2016
14:16:29
бред какой то

Kirill
24.04.2016
14:16:51
ага

Adamtsov
24.04.2016
14:17:44
получается он у тебя на страницу зайти не может

Kirill
24.04.2016
14:18:08
на visit category_theme_path(category, theme)?

Adamtsov
24.04.2016
14:18:14
да

попробуй visit root_path и

scenario 'shows the editing form', js: true do save_and_open_page end

у тебя хоть какие то тесты проходят?

Kirill
24.04.2016
14:19:26
а если я напишу вот, так, например то всё нормально

scenario 'shows the editing form' do expect(page).to have_content('Comments') save_and_open_page end

т.е. без js: true

пока с ajax не начал тестировать всё было хорошо

Adamtsov
24.04.2016
14:20:44
а ты конфиги менял для js: true?

конфиги rspec

надо DatabaseCleaner поставить

Kirill
24.04.2016
14:21:19
c root_path всё отлично

Google
Kirill
24.04.2016
14:21:37
вот его пробовал ставить, но видимо неправильн настроил

Adamtsov
24.04.2016
14:21:49
config.before(:suite) do DatabaseCleaner.clean_with(:truncation) end config.before(:each) do DatabaseCleaner.strategy = :transaction end config.before(:each, js: true) do DatabaseCleaner.strategy = :truncation end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end

Capybara.javascript_driver = :webkit

config.use_transactional_fixtures = false

но это лучше вынести в отдельный файл

https://github.com/4itosik/Stack/blob/master/spec/acceptance/acceptance_helper.rb

вот как тут сделано

Kirill
24.04.2016
14:22:17
да, что то из этого есть, но не всё

Adamtsov
24.04.2016
14:23:00
и в тестах с capybar пиши не require 'rails_helper' а require 'acceptance/acceptance_helper'

Kirill
24.04.2016
14:23:23
сейчас подправлю

заработало как то

?

Kirill
24.04.2016
14:33:24
спасибо, Артём

Adamtsov
24.04.2016
14:33:31
да не за что)

Kirill
24.04.2016
14:34:17
может есть желание и возможность поработать над проектом вместе?

я как то упомянал, что разрабатываю социальный проект один в ученых целях

*учебных

Adamtsov
24.04.2016
14:44:12
можно на след недели обсудить

Kirill
24.04.2016
14:44:52
т.е. которая с завтра или со следующего понедельника?

Adamtsov
24.04.2016
14:44:57
с завтра

Google
Kirill
24.04.2016
14:45:15
отлично, дай знать как будет удобно в личку

Saveliy
24.04.2016
15:02:51
ребят, кто-нибудь пробовал beautiful-soup?

для парсинга с сайтов

Silent Bob
24.04.2016
15:29:16
nokogiri ?

Saveliy
24.04.2016
15:31:00
сейчас гляну, спасиб)

Misha
24.04.2016
15:33:39
Есть кто-то, кто может в фотошоп и не занят?

Germanius
24.04.2016
17:45:21
Admin
ERROR: S client not available

Misha
24.04.2016
20:25:43
есть кто?

jdggd
24.04.2016
20:25:57
+

Roman
24.04.2016
20:26:06
+

Misha
24.04.2016
20:26:38
Подскажите пожалуйста, если деплоить приложение под хероку, я смогу как-то через консоль сделать пользователя админ, дургого варианта не предусматривал

Andrey
24.04.2016
20:26:56
Конечно

heroku run rails c

Misha
24.04.2016
20:27:29
спасибо

jdggd
24.04.2016
21:26:36
кто тру линуксоид ?

Dan
24.04.2016
21:27:49
какой у тебя вопрос?

jdggd
24.04.2016
21:28:29
юзал ли кто i3wm

Dan
24.04.2016
21:29:15
мой знакомый на фре юзает. он счастлив

jdggd
24.04.2016
21:29:56
я просто на mate и не знаю, стоит ли пробывать

Google
Dan
24.04.2016
21:30:28
если железо позволяет - сделай в виртуальной машине, протестируй, если понравится - сделай бэкап и накати на основную машину.

jdggd
24.04.2016
21:31:23
лан, попробую, спасибо)

Misha
24.04.2016
21:32:14
кто-то ставил бубунту 16?

jdggd
24.04.2016
21:33:10
сосед, лаги пздц, в терминале линии какието, не засыпает ноут аахха кароче подожди немного

Ruslan ?
24.04.2016
21:34:00
14.04 пока лучше

Vitaliy
24.04.2016
21:49:55
кто-то ставил бубунту 16?
Ксубунту 16.04 поставил, пока все здорово

Мигрирую с минта 15, порядком разросшегося уже

Dan
24.04.2016
21:51:09
кто-то ставил бубунту 16?
да. работает. не работает пока только гуевый менеджер приложений. но он и не нужен

Misha
24.04.2016
21:52:27
Наверно, подожду еще до лета, потом перееду

Evgeniy
25.04.2016
05:57:00
кто-то ставил бубунту 16?
вчера обновил 14.04 до 16.04, получил кирпич.

Albert
25.04.2016
06:03:27
14.04 LTS to LTS upgrades will be enabled with the 16.04.1 LTS point release, in approximately 3 months time.

jdggd
25.04.2016
06:30:18
Привет, не заливает на харуку) sqllite установил но всеравно чет не то Может postgre поставить ? Counting objects: 66, done. Delta compression using up to 2 threads. Compressing objects: 100% (56/56), done. Writing objects: 100% (66/66), 16.86 KiB | 0 bytes/s, done. Total 66 (delta 2), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.2.4 remote: -----> Installing dependencies using bundler 1.11.2 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: Fetching gem metadata from https://rubygems.org/........... remote: Fetching version metadata from https://rubygems.org/... remote: Fetching dependency metadata from https://rubygems.org/.. remote: Installing i18n 0.7.0 remote: Installing rake 11.1.2 remote: Installing json 1.8.3 with native extensions remote: Installing minitest 5.8.4 remote: Installing thread_safe 0.3.5 remote: Installing builder 3.2.2 remote: Installing erubis 2.7.0 remote: Installing mini_portile2 2.0.0 remote: Installing mime-types-data 3.2016.0221 remote: Installing rack 1.6.4 remote: Installing arel 6.0.3 remote: Installing coffee-script-source 1.10.0 remote: Installing execjs 2.6.0 remote: Installing thor 0.19.1 remote: Installing multi_json 1.11.2 remote: Using bundler 1.11.2 remote: Installing concurrent-ruby 1.0.1 remote: Installing pg 0.17.1 with native extensions remote: Installing rails_serve_static_assets 0.0.5 remote: Installing rails_stdout_logging 0.0.5 remote: Installing sass 3.4.22 remote: Installing tilt 2.0.2 remote: Installing sqlite3 1.3.11 with native extensions remote: Installing tzinfo 1.2.2 remote: Installing nokogiri 1.6.7.2 with native extensions remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. remote: /tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160425-322-3tyak2.rb extconf.rb remote: checking for sqlite3.h... no remote: sqlite3.h is missing. Try 'port install sqlite3 +universal', remote: 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' remote: and check your shared library search path (the remote: location where your sqlite3 shared library is located). remote: *** extconf.rb failed *** remote: Could not create Makefile due to some reason, probably lack of necessary remote: libraries and/or headers. Check the mkmf.log file for more details. You may remote: need configuration options. remote: Provided configuration options: remote: --with-opt-dir remote: --without-opt-dir remote: --with-opt-include remote: --without-opt-include=${opt-dir}/include remote: --with-opt-lib remote: --without-opt-lib=${opt-dir}/lib remote: --with-make-prog remote: --without-make-prog remote: --srcdir=. remote: --curdir remote: --ruby=/tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/ruby-2.2.4/bin/$(RUBY_BASE_NAME) remote: --with-sqlite3-dir remote: --without-sqlite3-dir remote: --with-sqlite3-include remote: --without-sqlite3-include=${sqlite3-dir}/include remote: --with-sqlite3-lib remote: --without-sqlite3-lib=${sqlite3-dir}/lib remote: extconf failed, exit code 1 remote: Gem files will remain installed in /tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/bundle/ruby/2.2.0/gems/sqlite3-1.3.11 for inspection. remote: Results logged to /tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/sqlite3-1.3.11/gem_make.out remote: Installing mime-types 3.0 remote: Installing rdoc 4.2.2 remote: Instal

ling rack-test 0.6.3 remote: Installing coffee-script 2.4.1 remote: Installing uglifier 3.0.0 remote: Installing sprockets 3.6.0 remote: Installing rails_12factor 0.0.2 remote: Installing activesupport 4.2.5.1 remote: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot remote: continue. remote: Make sure that gem install sqlite3 -v '1.3.11' succeeds before bundling. remote: Bundler Output: Fetching gem metadata from https://rubygems.org/........... remote: Fetching version metadata from https://rubygems.org/... remote: Fetching dependency metadata from https://rubygems.org/.. remote: Installing i18n 0.7.0 remote: Installing rake 11.1.2 remote: Installing json 1.8.3 with native extensions remote: Installing minitest 5.8.4 remote: Installing thread_safe 0.3.5 remote: Installing builder 3.2.2 remote: Installing erubis 2.7.0 remote: Installing mini_portile2 2.0.0 remote: Installing mime-types-data 3.2016.0221 remote: Installing rack 1.6.4 remote: Installing arel 6.0.3 remote: Installing coffee-script-source 1.10.0 remote: Installing execjs 2.6.0 remote: Installing thor 0.19.1 remote: Installing multi_json 1.11.2 remote: Using bundler 1.11.2 remote: Installing concurrent-ruby 1.0.1 remote: Installing pg 0.17.1 with native extensions remote: Installing rails_serve_static_assets 0.0.5 remote: Installing rails_stdout_logging 0.0.5 remote: Installing sass 3.4.22 remote: Installing tilt 2.0.2 remote: Installing sqlite3 1.3.11 with native extensions remote: Installing tzinfo 1.2.2 remote: Installing nokogiri 1.6.7.2 with native extensions remote: remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. remote: remote: /tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160425-322-3tyak2.rb extconf.rb remote: checking for sqlite3.h... no remote: sqlite3.h is missing. Try 'port install sqlite3 +universal', remote: 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' remote: and check your shared library search path (the remote: location where your sqlite3 shared library is located). remote: *** extconf.rb failed *** remote: Could not create Makefile due to some reason, probably lack of necessary remote: libraries and/or headers. Check the mkmf.log file for more details. You may remote: need configuration options. remote: remote: Provided configuration options: remote: --with-opt-dir remote: --without-opt-dir remote: --with-opt-include remote: --without-opt-include=${opt-dir}/include remote: --with-opt-lib remote: --without-opt-lib=${opt-dir}/lib remote: --with-make-prog remote: --without-make-prog remote: --srcdir=. remote: --curdir remote: --ruby=/tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/ruby-2.2.4/bin/$(RUBY_BASE_NAME) remote: --with-sqlite3-dir remote: --without-sqlite3-dir remote: --with-sqlite3-include remote: --without-sqlite3-include=${sqlite3-dir}/include remote: --with-sqlite3-lib remote: --without-sqlite3-lib=${sqlite3-dir}/lib remote: remote: extconf failed, exit code 1 remote: remote: Gem files will remain installed in /tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/bundle/ruby/2.2.0/gems/sqlite3-1.3.11 for inspection. remote: Results logged to /tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/sqlite3-1.3.11/gem_make.out remote: Installing mime-types 3.0 remote: Installing rdoc 4.2.2 remote: Installing rack-test 0.6.3 remote: Installing coffee-script 2.4.1 remote: Installing uglifier 3.0.0 remote: Installing sprockets 3.6.0

remote: Installing rails_12factor 0.0.2 remote: Installing activesupport 4.2.5.1 remote: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot remote: continue. remote: Make sure that gem install sqlite3 -v '1.3.11' succeeds before bundling. remote: ! remote: ! Failed to install gems via Bundler. remote: ! remote: ! Detected sqlite3 gem which is not supported on Heroku. remote: ! https://devcenter.heroku.com/articles/sqlite3 remote: ! remote: remote: ! Push rejected, failed to compile Ruby app remote: remote: Verifying deploy... remote: remote: ! Push rejected to worldofbeer. remote: To https://git.heroku.com/worldofbeer.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/worldofbeer.git'

Sergei
25.04.2016
06:31:20
nokogiri может до bundle поставить руками ?

jdggd
25.04.2016
06:32:01
Подробнее можан ?)) Я с села)

Evgeniy
25.04.2016
06:35:36
Привет, не заливает на харуку) sqllite установил но всеравно чет не то Может postgre поставить ? Counting objects: 66, done. Delta compression using up to 2 threads. Compressing objects: 100% (56/56), done. Writing objects: 100% (66/66), 16.86 KiB | 0 bytes/s, done. Total 66 (delta 2), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.2.4 remote: -----> Installing dependencies using bundler 1.11.2 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: Fetching gem metadata from https://rubygems.org/........... remote: Fetching version metadata from https://rubygems.org/... remote: Fetching dependency metadata from https://rubygems.org/.. remote: Installing i18n 0.7.0 remote: Installing rake 11.1.2 remote: Installing json 1.8.3 with native extensions remote: Installing minitest 5.8.4 remote: Installing thread_safe 0.3.5 remote: Installing builder 3.2.2 remote: Installing erubis 2.7.0 remote: Installing mini_portile2 2.0.0 remote: Installing mime-types-data 3.2016.0221 remote: Installing rack 1.6.4 remote: Installing arel 6.0.3 remote: Installing coffee-script-source 1.10.0 remote: Installing execjs 2.6.0 remote: Installing thor 0.19.1 remote: Installing multi_json 1.11.2 remote: Using bundler 1.11.2 remote: Installing concurrent-ruby 1.0.1 remote: Installing pg 0.17.1 with native extensions remote: Installing rails_serve_static_assets 0.0.5 remote: Installing rails_stdout_logging 0.0.5 remote: Installing sass 3.4.22 remote: Installing tilt 2.0.2 remote: Installing sqlite3 1.3.11 with native extensions remote: Installing tzinfo 1.2.2 remote: Installing nokogiri 1.6.7.2 with native extensions remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. remote: /tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160425-322-3tyak2.rb extconf.rb remote: checking for sqlite3.h... no remote: sqlite3.h is missing. Try 'port install sqlite3 +universal', remote: 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' remote: and check your shared library search path (the remote: location where your sqlite3 shared library is located). remote: *** extconf.rb failed *** remote: Could not create Makefile due to some reason, probably lack of necessary remote: libraries and/or headers. Check the mkmf.log file for more details. You may remote: need configuration options. remote: Provided configuration options: remote: --with-opt-dir remote: --without-opt-dir remote: --with-opt-include remote: --without-opt-include=${opt-dir}/include remote: --with-opt-lib remote: --without-opt-lib=${opt-dir}/lib remote: --with-make-prog remote: --without-make-prog remote: --srcdir=. remote: --curdir remote: --ruby=/tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/ruby-2.2.4/bin/$(RUBY_BASE_NAME) remote: --with-sqlite3-dir remote: --without-sqlite3-dir remote: --with-sqlite3-include remote: --without-sqlite3-include=${sqlite3-dir}/include remote: --with-sqlite3-lib remote: --without-sqlite3-lib=${sqlite3-dir}/lib remote: extconf failed, exit code 1 remote: Gem files will remain installed in /tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/bundle/ruby/2.2.0/gems/sqlite3-1.3.11 for inspection. remote: Results logged to /tmp/build_1e638a374cd095280974fb5b3609ef19/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/sqlite3-1.3.11/gem_make.out remote: Installing mime-types 3.0 remote: Installing rdoc 4.2.2 remote: Instal
а хероку разве понимает sqlite?

Vladimir
25.04.2016
06:36:57
Detecting sqlite gem is not supported on heroku

jdggd
25.04.2016
06:37:05
Ну я ведь с села) Лан попробую постгре

Страница 78 из 1009