-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/issue 333 #378
Open
angdev
wants to merge
4
commits into
develop
Choose a base branch
from
feature/issue-333
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/issue 333 #378
Conversation
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
angdev
force-pushed
the
feature/issue-333
branch
from
October 30, 2014 10:46
b74bf8b
to
55a242d
Compare
확인! 너무 중복되는 create들은 따로 뽑아서 before each로 뽑아줘도 괜찮을듯~ |
확인요 |
음... 다른 곳에서 테스트가 하나 실패하는 것 같네요. ㅠㅠ Failures:
1) Admin::Messages::SendMessageService should fail if notice is invalid
Failure/Error: expect(out[:status]).to eq(:failure)
expected: :failure
got: :success
(compared using ==)
Diff:
@@ -1,2 +1,2 @@
-:failure
+:success
# ./spec/unit/services/admin/messages/send_message_service_spec.rb:40:in `block (2 levels) in <top (required)>'
# ./spec/rails_helper.rb:40:in `block (3 levels) in <top (required)>'
# ./spec/rails_helper.rb:39:in `block (2 levels) in <top (required)>'
Finished in 18.22 seconds (files took 6.56 seconds to load)
138 examples, 1 failure
Failed examples:
rspec ./spec/unit/services/admin/messages/send_message_service_spec.rb:37 # Admin::Messages::SendMessageService should fail if notice is invalid 수정이 필요할 것 같습니다~ |
그리고 단위테스트는 Spec(기술 명세서)의 역할도 하기 때문에, 다소 코드가 중복되더라도 한 눈에 읽기 쉽게 작성하는게 좋습니다. ㅎㅎ spec/unit/models/notice_spec.rb의 메타프로그래밍 scope 부분은 전 오히려 코드가 중복되도 상관 없으니, 좀 더 읽기 쉽도록 풀어 쓰는게 좋지 않을까 생각합니다. ㅎㅎ |
멘토님이 말씀하신 에러가 다른 브랜치 #376 에서도 발생했었어요. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#333
#337 의 작업도 일부 병행하였습니다. 혹시 테스트되지 않은 부분이 있으면 #337 에 추가해주세요.