Giter Club home page Giter Club logo

ruby-variable-assignment's Introduction

Variable Assignment

Objectives

  1. Assign a local variable.

Instructions

You will assign a local variable named greeting that is equal to "Hello World".

You should first make sure the test suite is running correctly by running learn test.

Upon the first run of the test suite you should see:

Failures:

  1) ./variable.rb defined a local variable called greeting and set it equal to 'Hello World'
     Failure/Error: greeting = get_variable_from_file('./variable.rb', "greeting")
     NameError:
       local variable `greeting' not defined in ./variable.rb.
     # ./spec/spec_helper.rb:14:in `rescue in get_variable_from_file'
     # ./spec/spec_helper.rb:11:in `get_variable_from_file'
     # ./spec/variable_spec.rb:5:in `block (2 levels) in <top (required)>'

Finished in 0.00075 seconds (files took 0.0839 seconds to load)
1 example, 1 failure

To solve this test failure, create a local variable greeting in the variable.rb file. Set greeting equal to the string "Hello World". Run learn test to see if you did this correctly.

Resources

ruby-variable-assignment's People

Contributors

annjohn avatar aviflombaum avatar deniznida avatar fislabstest avatar fs-lms-test-bot avatar ihollander avatar jeffkatzy avatar kthffmn avatar loganhasson avatar markedwardmurray avatar maxwellbenton avatar octosteve avatar sarogers avatar sophiedebenedetto avatar timothylevi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby-variable-assignment's Issues

Error opening lab in Windows IDE

Hi,
When I click the open button in the lab to open the lab in the IDE for windows, I receive this error message in the IDE terminal:

bash: usr/local/rvm/gems/ruby-2.2.3/bin/learn: no such file or directory

It appears the lab is missing, I guess? I can clone the lab to my local machine, but then I won't be able to run the local tests.

Thanks,
Dave W.

Failures: This is the error messaging I received

When fixing the variable.rb file by defining the string "Hello World" using the variable greeting; the only error message that I received was as follows:

Failed examples:
rspec ./spec/variable_spec.rb:4 # ./variable.rb defined a local variable called greeting and set it equal to 'Hello World'

I was able to define the variable and correctly execute the file.

The directions state when 1st executing the learn command the user should receive the following prompt:

Failures:

  1. ./variable.rb defined a local variable called greeting and set it equal to 'Hello World'
    Failure/Error: greeting = get_variable_from_file('./variable.rb', "greeting")
    NameError:
    local variable `greeting' not defined in ./variable.rb.

    ./spec/spec_helper.rb:14:in`rescue in get_variable_from_file'

    ./spec/spec_helper.rb:11:in `get_variable_from_file'

    ./spec/variable_spec.rb:5:in`block (2 levels) in <top (required)>'

Can't Submit Lad

Good morning I have completed this lab and passed it. But I can not submit. Please advise.

Kind Regards

Andrea T

BUILD FAILURE

Doing this correctly, submitted several times, but still a BUILD FAILURE. Keep getting no specs in file. Any ideas? I've since moved on but would like to see it correct. Thanks.

Enviorment is not updating

There is an issue with syncing between atom and the lesson. I have made the changes to the .rb files. When I run the test in command line the files show to have not been updated with what is in the text editor. I skipped past the lesson thinking that it was something that I was doing wrong. I have now clicked the open button on the lesson and the command line is showing the correct files but the tree is not showing the new lesson. I have used the pwd and ls command and they are both showing the files. But once again the file tree is not showing the new lesson.

Ask A Question Still Does Not Work!!!!

It's 8:17 pm on the east coast and when I log into Learn.co and go to my lesson, the "Ask A Question" button is grayed out. This has happened to me every time I've logged in. Is there some issue going on?

LOCAL BUILD FAILURE

Code is correct, yet getting a LOCAL BUILD FAILURE. I've moved way past this lesson, but still check now and then. Not resolved.

lesson will not load

I keep getting the below message while trying to work on the variable assignment:

You can split a pane with pane:split-right
W
[15:56:50] ~
// ♥ learn open ruby-variable-assignment-ruby-intro-000
Looking for lesson...
Sorry, something went wrong. Please try again.

Unable to fork this lab correctly

In the terminal at the beginning, it showed all the files but not in the menu. I updated the Git hub and later on I got the following message when I click the open for forking the variable lab!
variable_lab_forking_error

ADD TESTS or UPDATE INSTRUCTIONS

Can not finish this lab, as says BUILD FAILURE. There are are no specs in file 'variable.rb'. Please either add specs or update instructions. Thanks.

Fork and Pull Request are not updating

I am following the same procedures as for previous labs, but the Fork button on the Learn interface is not showing completion when I click on Git and Fork the lab.
I can still go to Nitrous and complete the lab, type "learn submit" when I am finished, and to back to learn and the Pull Request button on the right is not showing completion.

Ruby-Variable-Assignment Bug?

Screen Shot 2020-09-08 at 11 23 06 AM

Hi there, am trying to complete the Variable Assignment in the first mile that's available. I think I did it correct, but am unable to submit my progress and continue on to the next assignment. Am I missing a step for submitting this work?

Thank you!

Shouldn't be in public batch

this seems to be mostly about installing leant and writing hello world- both of which were covered in previous labs.

I can't solve the task.

I opened the filename variable.rb. Then I set the variable as described. I saved it, but then when I'm in the IDE the variable is not outputted. Did I follow the instructions or not?
Thank you.

My Assignment isn't submitting.

I have finished the lab and ran "learn" and the progress checker is greyed out. It indicates that my assignment has not been ran through. I'm afraid to move forward with this assignment marked as "incomplete"

defining method

so ive been doing pretty well thus far but im stuck on the defining methods lab, did everything it asked for but it wont allow me to submit can anyone help?

Can't submit lesson

For some reason I can't submit the lesson. I have the green circle which shows I passed but the only other clickable option is to move forward. Once I click that, I get a warning that my assignment wasn't submitted.

Can't submit

Hello,

I've passed the local tests on this assignment, but for some reason it won't let me submit my work.

Andrew Witmer

Learn Directory

Hi All,
Having a small issue here. I just finished learning how to submit FI work through my local machine so I think I've done everything correctly. My issue is that my Visual Studio keeps saying "you don't appear to be in a Learn lesson's directory. Please enter 'learn open' or cd to an appropriate directory and try again." whenever I type "learn code".

Warning message

Hello,

I keep getting this message:

2.3.1 :016 > [08:04:55] ~
// ♥ learn open ruby-variable-assignment-v-000
Looking for lesson...
WARNING: You are attempting to open a lesson that is beyond your current lesson.
Are you sure you want to continue? [Yn]:

I have gone backwards and forwards and still cannot figure out what I missed.

This seems redundant

This seems redundant at this location because Learn has already been introduced and used many times.

However, if you get:

-bash: learn: command not found
Then you need to install Learn. Do that via: gem install learn-co in your command line.

To solve this test failure, create a local variable greeting in the variable.rb file. Set greeting equal to the string "Hello World". Run learn to see if you did this correctly.

Constants can be re-assigned?

User Pavling (https://learn.co/Pavling) reports:

The section about constants is wrong. They can be re-assigned - the message is a warning, not an error. Running the code in the example results in: > CONSTANT => "I can't be reassigned!"

learn submit

lesson is not registering "open IDE" as green

Nor is it registering my commit for "learn submit"

Can't open using nitrous

Every time I've tried to open a lesson a popup appears telling me that nitrous can't load the lab. I've tried switching to local per troubleshooting but that hasn't worked, and I'm now unable to access the option to open in nitrous.

Variable Assignment

After putting in code and doing it correctly. It won't let me test it nor would it let me submit my work.

Submit

I did my first lab. But my submit button is red, and I cannot go to next lesson!

Can't submit

I can't finish assignment. I can't run the test

Variable Assignment

The error message is not the same as the instruction and when I created a local variable, greeting = "Hello World" , in variable.rb file it still will not go through. :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.